Hi folks,
I have a problem running rsyslog on top of daemontools. my run file looks like this
Code:
beta:/service/rsyslogd# cat run
#!/bin/sh
exec /usr/sbin/rsyslogd -c3 -f /etc/rsyslog.conf >/dev/null 2>&1
supervise keeps on restarting rsyslogd
Code:
beta:/service# svstat /service/*
/service/ntpd: down 2646 seconds, normally up
/service/rsyslogd: up (pid 30589) 0 seconds
its always 0-1 seconds up with a different PID. if I stop the service
Code:
beta:/service/rsyslogd/supervise# svc -d /service/rsyslogd/
beta:/service/rsyslogd/supervise# svstat /service/*
/service/ntpd: down 3347 seconds, normally up
/service/rsyslogd: down 4 seconds, normally up
beta:/service/rsyslogd/supervise# ps -ef |grep rsyslog
root 30658 28527 0 19:35 pts/3 00:00:00 supervise /service/rsyslogd
root 30661 1 0 19:35 ? 00:00:00 /usr/sbin/rsyslogd -c3 -f /etc/rsyslog.conf
root 30828 28527 0 19:37 pts/3 00:00:00 grep rsyslog
it just keeps on running while supervise says its down
I also have ntpd 'supervised' with no problems at all.
any ideas why this is happening?
thanks