diff options
author | Nico <nico@rottenbytes.info> | 2012-11-30 12:13:11 +0100 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-04-01 10:09:19 -0700 |
commit | 15b28b168d0a5e05195ffc5ba6dee89d7f56ab48 (patch) | |
tree | 5830e6bd54aa7c2e35db1f8ede3adbf27af76fc9 /distro | |
parent | da929a310db62b6180197d51a5b8fa2078a48467 (diff) | |
download | chef-15b28b168d0a5e05195ffc5ba6dee89d7f56ab48.tar.gz |
fix for chef 3386
Diffstat (limited to 'distro')
-rwxr-xr-x | distro/debian/etc/init.d/chef-client | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/distro/debian/etc/init.d/chef-client b/distro/debian/etc/init.d/chef-client index 8f99748f59..c5dfea06fb 100755 --- a/distro/debian/etc/init.d/chef-client +++ b/distro/debian/etc/init.d/chef-client @@ -165,8 +165,10 @@ case "$1" in restart|force-reload) log_daemon_msg "Restarting $DESC" "$NAME" errcode=0 - stop_server || errcode=$? - [ -n "$DIETIME" ] && sleep $DIETIME + if running ; then + stop_server || errcode=$? + [ -n "$DIETIME" ] && sleep $DIETIME + fi start_server || errcode=$? [ -n "$STARTTIME" ] && sleep $STARTTIME running || errcode=$? |