summaryrefslogtreecommitdiff
path: root/distro
diff options
context:
space:
mode:
Diffstat (limited to 'distro')
-rwxr-xr-xdistro/debian/etc/init.d/chef-client6
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=$?