diff options
-rwxr-xr-x | config/sysvinit.example | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/sysvinit.example b/config/sysvinit.example index b2ca25c9c..1f154801b 100755 --- a/config/sysvinit.example +++ b/config/sysvinit.example @@ -18,11 +18,11 @@ NAME=alaveteli DESC="Alaveteli app server" USER=alaveteli -echo $DAEMON -test -f $DAEMON || exit 0 - set -e +# Check that the Daemon can be run +su -l -c "cd $SITE_HOME && bundle exec thin --version &> /dev/null || exit 0" $USER + start_daemon() { cd "$SITE_HOME"/alaveteli && bundle exec thin \ --environment=production \ |