From 3468fe25994542ceec3156af69d95ba72a68e05d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 20 May 2022 21:22:29 +0200 Subject: [PATCH] Fix pre-existing pid file --- conf/fab-manager-app.service | 1 + 1 file changed, 1 insertion(+) diff --git a/conf/fab-manager-app.service b/conf/fab-manager-app.service index ce6829c..d7e7ab0 100644 --- a/conf/fab-manager-app.service +++ b/conf/fab-manager-app.service @@ -9,6 +9,7 @@ WorkingDirectory=__FINALPATH__ Environment="__LD_PRELOAD__" Environment="__YNH_RUBY_LOAD_PATH__" Environment="RAILS_ENV=production" +ExecStartPre=-/bin/bash -c 'rm -f __FINAL_PARH__/tmp/pids/server.pid' ExecStart=__FINALPATH__/bin/bundle exec rails s puma -p __PORT__ -b 0.0.0.0 ExecReload=/bin/kill -SIGUSR1 $MAINPID TimeoutSec=15