Skip to content

Commit

Permalink
Updated init script
Browse files Browse the repository at this point in the history
  • Loading branch information
Clark Perkins committed Jan 19, 2017
1 parent 081e6b6 commit 04f034d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packer/init-script
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DESC="stackd.io web server"
NAME=stackdio
USER=stackdio
DAEMON=/usr/share/stackdio/bin/supervisord
OTHER_DAEMON=/usr/share/stackdio/bin/supervisorctl
CONTROLLER=/usr/share/stackdio/bin/supervisorctl
CONFIG=/etc/stackdio/supervisord.conf
DAEMON_ARGS="-c $CONFIG"
PIDFILE=/var/run/$NAME.pid
Expand Down Expand Up @@ -68,7 +68,7 @@ do_stop()
# 1 if daemon was already stopped
# 2 if daemon could not be stopped
# other if a failure occurred
$OTHER_DAEMON $DAEMON_ARGS shutdown &> /dev/null
$CONTROLLER $DAEMON_ARGS shutdown &> /dev/null
RETVAL="$?"
# Many daemons don't delete their pidfiles when they exit.
rm -f $PIDFILE
Expand All @@ -87,7 +87,7 @@ do_reload() {
# restarting (for example, when it is sent a SIGHUP),
# then implement that here.
#
$OTHER_DAEMON $DAEMON_ARGS reload &> /dev/null
$CONTROLLER $DAEMON_ARGS reload &> /dev/null
return "$?"
}

Expand Down

0 comments on commit 04f034d

Please sign in to comment.