From 5a387d429aef4e35673c6a1476b01d8ebba5425d Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 30 Oct 2009 13:19:24 +0000 Subject: [PATCH] Fix init script if path is unset (as in cron). Fix restart action. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14717 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/debian/gosa-si-common.init | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gosa-si/debian/gosa-si-common.init b/gosa-si/debian/gosa-si-common.init index c1a730e72..d134eb3e7 100755 --- a/gosa-si/debian/gosa-si-common.init +++ b/gosa-si/debian/gosa-si-common.init @@ -21,6 +21,8 @@ DAEMON_CLIENT="/usr/sbin/${CLIENT}" PIDFILE_SERVER="/var/run/${SERVER}.pid" PIDFILE_CLIENT="/var/run/${CLIENT}.pid" +PATH="/sbin:/usr/sbin:/bin:/usr/bin" + # Load defaults [ -r /etc/default/gosa-si ] && . /etc/default/gosa-si @@ -76,14 +78,14 @@ stop) log_daemon_msg "Stopping GOsa support infrastructure" log_end_msg $? ;; reload|force-reload|restart) log_daemon_msg "Restarting GOsa support infrastructure" - if [ "$START_CLIENT" = "1" -a -x {DAEMON_CLIENT} ]; then + if [ "$START_CLIENT" = "1" -a -x ${DAEMON_CLIENT} ]; then stop_client fi - if [ -x {DAEMON_SERVER} ]; then + if [ -x ${DAEMON_SERVER} ]; then stop_server start_server fi - if [ "$START_CLIENT" = "1" -a -x {DAEMON_CLIENT} ]; then + if [ "$START_CLIENT" = "1" -a -x ${DAEMON_CLIENT} ]; then start_client fi log_progress_msg "done" -- 2.30.2