Re: supervise not running
Charlie Brady <[email protected]>
| Newsgroups | gmane.network.djbdns |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 15 Sep 2008, Larry Weldon wrote: > Yes. In fact I was thus pointed in a new direction. I found a kernel > option - nopinit - no parallel init - which stops the kernel from > running the rc scripts in parallel. No it doesn't. The kernel doesn't run rc scripts. The kernel just runs init. init runs rc scripts. > haldaemon wasn't starting (and I had already found that) and httpd > wasn't starting. Although I had seen that, as well, I mistakenly thought > it meant that _nothing_ was starting. Both haldaemon and httpd (apache) can be supervised. Beware of startup race conditions between udev initialisation and haldaemon. This works for me (on CentOS5): #! /bin/sh #udevd coldplug event processing for a cdrom device #must complete before haldaemon is started so that the fstab #entry for the cdrom will be created udev_cdrom_link_exists=0 udev_timeout=10 while [ $udev_cdrom_link_exists -eq 0 ] && [ $udev_timeout -gt 0 ] do udev_cdrom_link=$(/usr/bin/udevinfo -q symlink -n cdrom) [ $? -eq 0 ] && udev_cdrom_link_exists=1 || sleep 1 (( --udev_timeout )) echo "haldaemon_run_script: udev_cdrom_symlinks: $udev_cdrom_link" done exec 2>&1 exec /usr/sbin/hald --daemon=no --verbose=yes --- Charlie