daemontools | rsyslog issue & debian
Hi folks,
I have a problem running rsyslog on top of daemontools. my run file looks like this Code:
beta:/service/rsyslogd# cat run Code:
beta:/service# svstat /service/* Code:
beta:/service/rsyslogd/supervise# svc -d /service/rsyslogd/ I also have ntpd 'supervised' with no problems at all. any ideas why this is happening? thanks |
I wouldn't run these processes through daemontools at all.
Daemontools knows more about you than you know about it, and I suggest a little reading there to sort that problem out. The other thing to know is that hardly anyone uses the install directories the eccentric author used, because they are not just mad, they're irritating, and non kosher, etc. so patches are often applied. You might get help on http://www.lifewithqmail.org syslogd & ntpd should be running and not mentioned in daemontools, unless you have a good reason to know better. Daemontools is to start a process for each request - so ftpd will be started for each ftp request, that sort of thing. |
thanks for reply business_kid,
I am looking for a way to guard a process so if it dies it gets restarted automatically, e.g. when VM is resumed, time is all screwed up and ntpd wont update - ntpd has died off. i would like to have some critical processes guarded and eventually restarted if sth like this happens. thats why i want to use daemontools. do you know about a better solution? thanks |
ntpd is ok with p[icking up and tuning the time to what it is now, although it doesn't adjust 12 hours in one swoop unless you set it to.
The expected behaviour for ntpd, and syslogd is to get started, to shut up and stay in the background doing things quietly. I would look into why they are quitting. As for restarting them how about something like this run from cron if pgrep ntpd = "" then start_ntpd fi |
Quote:
//just cleaning up old threads, thanks for attention & help :) |
All times are GMT -5. The time now is 12:17 PM. |