Consider my frugal installation of NON-PAE Slacko Puppy 5.6.4...
I have some 'logger' commands, as well as simple 'echo' commands in rc.local and a couple of files that rc.local call... but the logger commands and the echo strings are not appearing in the /var/log/messages file. They always did in every version of Puppy I'd used since before 4.x.
Here's my /etc/rc.d/rc.local:-
Code: Select all
logger -s -p user.info -t rc.sitestartup "Running local.rc..."
echo rc.local started
echo rc.local started > /root/STARTUP_LOCAL.txt
echo checking syslogd.. >> /root/STARTUP_LOCAL.txt
ps -Al | grep syslog >> /root/STARTUP_LOCAL.txt
echo rc.local calling rc.sitestartup >> /root/STARTUP_LOCAL.txt
. /etc/rc.d/rc.sitestartup
echo rc.local returned from rc.sitestartup >> /root/STARTUP_LOCAL.txt
echo rc.local calling rc.firewall >> /root/STARTUP_LOCAL.txt
if [ -x /etc/rc.d/rc.firewall ]; then
/etc/rc.d/rc.firewall start
fi
echo rc.local returned from rc.firewall >> /root/STARTUP_LOCAL.txt
echo rc.local finished >> /root/STARTUP_LOCAL.txt
Code: Select all
rc.local started
checking syslogd..
rc.local calling rc.sitestartup
rc.local returned from rc.sitestartup
rc.local calling rc.firewall
rc.local returned from rc.firewall
rc.local finished
Code: Select all
# logger TEST
Code: Select all
Mar 2 02:35:51 hexad daemon.debug dhcpcd[7345]: wlan0: sending ARP announce (1 of 2), next in 2.00 seconds
Mar 2 02:35:53 hexad daemon.debug dhcpcd[7345]: wlan0: sending ARP announce (2 of 2)
Mar 1 14:40:00 hexad user.notice root: TEST
So what d'you think is going on here? The scripts are running... and they're producing the expected 'on disk' output... but the logging and echo things don't seem to be working.
I note that syslogd is (maybe) NOT running at the time rc.local is running... but it appears to be running at the START of /var/log/messages, viz:-
Code: Select all
Mar 2 03:04:51 hexad syslog.info syslogd started: BusyBox v1.21.0
Mar 2 03:04:51 hexad user.notice kernel: klogd started: BusyBox v1.21.0 (2013-02-18 15:57:06 WST)
Mar 2 03:04:51 hexad user.notice kernel: [ 0.000000] Linux version 3.4.52 (root@main) (gcc version 4.7.1 (GCC) ) #1 SMP Wed Jul 10 10:53:04 EST 2013
The problems don't exist in Lucid 5.2.8, but they DO exist in Precise 5.5, Precise 5.7.1, Slacko 5.6 and Slacko 5.6.4.
I wonder what has changed?... It's the first time I've had (significant) troubles with moving to a new Puppy ...