Skip to content

Commit

Permalink
Merge pull request #25 from jdrago999/patch-1
Browse files Browse the repository at this point in the history
Make restart actually work
  • Loading branch information
suryanarayanan committed Aug 28, 2015
2 parents dc28896 + be6f2db commit f38d8b9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions init.d/codedeploy-agent
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ stop() {
exit $?
}

restart() {
echo -n $"Restarting $prog:"
cd $AGENT_ROOT
nohup $BIN restart >/dev/null </dev/null 2>&1 # Try to restart the server
exit $?
}

status() {
cd $AGENT_ROOT
$BIN status # Status of the server
Expand Down Expand Up @@ -67,8 +74,7 @@ case "$1" in
stop
;;
restart)
stop
start
restart
;;
force-reload)
stop
Expand Down

0 comments on commit f38d8b9

Please sign in to comment.