Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Fixed broken service restart action #67

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions attributes/default.rb
Expand Up @@ -17,6 +17,7 @@
# limitations under the License.
#

default['supervisor']['user'] = 'root'
default['supervisor']['unix_http_server']['chmod'] = '700'
default['supervisor']['unix_http_server']['chown'] = 'root:root'
default['supervisor']['inet_port'] = nil
Expand Down
3 changes: 1 addition & 2 deletions templates/default/debian/supervisor.init.erb
Expand Up @@ -140,8 +140,7 @@ case "$1" in
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
start-stop-daemon --stop --quiet --pidfile $PIDFILE
[ -n "$DODTIME" ] && sleep $DODTIME
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
Expand Down