--pidfile missing in init-script

Bug #764449 reported by falk on 2011-04-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zabbix (Ubuntu)
Undecided
Unassigned

Bug Description

# diff -Nru /etc/init.d/zabbix-agent{,.new}
--- /etc/init.d/zabbix-agent 2011-04-18 12:01:50.091575253 +0200
+++ /etc/init.d/zabbix-agent.new 2011-04-18 11:43:22.731870472 +0200
@@ -42,7 +42,8 @@
        ;;
   stop)
     log_daemon_msg "Stopping $DESC" "$NAME"
- start-stop-daemon --oknodo --stop --exec $DAEMON --retry $RETRY
+ start-stop-daemon --oknodo --stop --exec $DAEMON --retry $RETRY \
+ --pidfile $PID
     case "$?" in
         0) log_end_msg 0 ;;
         *) log_end_msg 1; exit 1 ;;

standard config in lucid points PID to
PidFile=/var/tmp/zabbix_agentd.pid

Must be changed to
PidFile=/var/run/zabbix-agent/zabbix_agentd.pid

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers