> Can anyone tell me what I need to do in > /etc/syslog.conf > To make the system logger create a file if it isn't > present. > > I wanted a general debug file so put this in > /etc/syslog.conf > > *.debug /var/adm/debug > hen I boot up I get error about there being no > /var/adm/debug > present. If I touch /var/adm/debug, the error goes > away on reboot. > > Where is this kind of thing controlled? Maybe > /etc/logadm.conf? > > Or is it just required for admin to create the files > by hand?
The clean and proper way to do this is to create a package, which does the following things: 1. declares a payload file /var/log/debug, as ZERO BYTES in size 2. defines the /var/log/debug file as type "v" (for "variable) in the package "prototype" file 3. automatically checks, and if necessary, makes an entry in /etc/syslog.conf for /var/log/debug in the "postinstall" file of the package 4. signals syslogd(1M) with SIGHUP that a configuration change has occured, also in the "postinstall" file. -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
