--- hal/hald/haldaemon.in +++ hal/hald/haldaemon.in @@ -11,11 +11,17 @@ # pidfile: @HALD_PID_FILE@ # +prefix=@prefix@ +exec_prefix=@exec_prefix@ +sbindir=@sbindir@ +sysconfdir=@sysconfdir@ +localstatedir=@localstatedir@ + # Sanity checks. -[ -x @SBINDIR@/hald ] || exit 0 +[ -x @sbindir@/hald ] || exit 0 # Source function library. -. @SYSCONFDIR@/rc.d/init.d/functions +. @sysconfdir@/rc.d/init.d/functions # so we can rearrange this easily processname=hald @@ -28,7 +34,7 @@ daemon --check $servicename $processname RETVAL=$? echo - [ $RETVAL -eq 0 ] && touch @LOCALSTATEDIR@/lock/subsys/$servicename + [ $RETVAL -eq 0 ] && touch @localstatedir@/lock/subsys/$servicename } stop() { @@ -61,7 +67,7 @@ start ;; condrestart) - if [ -f @LOCALSTATEDIR@/lock/subsys/$servicename ]; then + if [ -f @localstatedir@/lock/subsys/$servicename ]; then stop sleep 3 start