Just curious if there should be some thought put into a var/run issue I experienced recently wrt nagios not starting on reboot.. following the instructions provided by the port.
Basically, in /etc/rc, for those who are unaware, is the following code: # clean up left-over files rm -f /etc/nologin rm -f /var/spool/lock/LCK.* rm -f /var/spool/uucp/STST/* (cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; }) (cd /var/authpf && rm -rf -- *) Run everytime at boot. Now with that in mind, why do we have the following? ./mail/mimedefang/pkg/PLIST:@sample /var/run/mdefang/ ./mail/mimedefang/pkg/PLIST:@unexec rm -rf /var/run/mdefang/* ./net/nagios/nagios/pkg/PLIST-main:@sample /var/run/nagios/ ./net/freeradius/pkg/PLIST-main:@sample /var/run/radiusd/ ./net/gnugk/pkg/PLIST:@sample /var/run/gnugk/ ./security/stunnel/pkg/PLIST:@extra /var/run/stunnel.pid ./security/openct/pkg/PLIST:@sample /var/run/openct/ ./security/openct/pkg/PLIST:@extraunexec rm -rf /var/run/openct/* ./security/prelude/manager/pkg/PLIST:@extraunexec rm -rf /var/run/prelude-manager/* ./textproc/gonzui/pkg/PLIST:@sample /var/run/gonzui/ ./www/squid/pkg/PLIST:@exec ln -sf ${SQUIDDIR}/logs/squid.pid /var/run/squid.pid ./www/squid/pkg/PLIST:@unexec rm -f /var/run/squid.pid ./x11/dbus/pkg/PLIST:@sample /var/run/dbus/ ./x11/dbus/pkg/PLIST:@unexec rm -f /var/run/dbus/* Shouldn't the ports in question either via pkg/MESSAGE or somesuch instruct the user on proper startup of the software, including creation of the necessary directory(s) under /var/run so /etc/rc.local is properly populated? Thoughts? Note, for example, mysql does not contain mention of var/run in the PLIST, yet it does use /var/run/mysql/ .. and instructs to create it and chown it in /etc/rc.local. I like this. Is this a template for fixing the rest of these? Thanks, -- Todd Fries .. [EMAIL PROTECTED] _____________________________________________ | \ 1.636.410.0632 (voice) | Free Daemon Consulting, LLC \ 1.405.227.9094 (voice) | http://FreeDaemonConsulting.com \ 1.866.792.3418 (FAX) | "..in support of free software solutions." \ 250797 (FWD) | \ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 37E7 D3EB 74D0 8D66 A68D B866 0326 204E 3F42 004A http://todd.fries.net/pgp.txt