/var/run/zabbix-server deleted after reboot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zabbix (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Hardy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Same Problem as in "#96644 zabbix_agentd will not start after reboot"
Here is a fixed version of /etc/init.
#! /bin/sh
### BEGIN INIT INFO
# Provides: zabbix-server
# Required-Start: $local_fs $network
# Required-Stop: $local_fs
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Start zabbix-server daemon
### END INIT INFO
DAEMON=
NAME=zabbix_server
DESC="Zabbix server"
PID=/var/
### BEGIN /var/run Fix
DIR=/var/
if test ! -d "$DIR"; then
mkdir "$DIR"
chown -R zabbix:zabbix "$DIR"
fi
### END /var/run Fix
test -f $DAEMON || exit 0
set -e
export PATH="$
case "$1" in
start)
rm -f $PID
echo "Starting $DESC: $NAME"
;;
stop)
echo "Stopping $DESC: $NAME"
;;
restart|
$0 stop
sleep 2
$0 start
;;
*)
echo "Usage: $N {start|
exit 1
;;
esac
exit 0
CVE References
Changed in zabbix: | |
assignee: | nobody → shermann |
status: | New → Confirmed |
Changed in zabbix (Ubuntu): | |
status: | Fix Released → Confirmed |
Changed in zabbix (Ubuntu): | |
assignee: | Stephan Hermann (shermann) → Krzysztof Klimonda (kklimonda) |
status: | Confirmed → In Progress |
Changed in zabbix (Ubuntu): | |
assignee: | Krzysztof Klimonda (kklimonda) → nobody |
status: | In Progress → Confirmed |
Changed in zabbix (Ubuntu Hardy): | |
status: | New → Fix Committed |
tags: | added: verification-done |
Great code. It works smoothly in Ubuntu 7.10. I had already a workaround of this "startup failure" bug, but my code was not integrated in the init.d startup file.
Thanks a lot.