Checking that Startup script is running
-
- Posts: 60
- Joined: Thu 15 Nov 2012, 16:06
Checking that Startup script is running
I have a script in /root/Startup and it calls echo "test" > test.log. If I run it by itself it creates the test.log file, but it doesn't create it at startup. Does this mean my script isn't running, and if so what should I check?
-
- Posts: 60
- Joined: Thu 15 Nov 2012, 16:06
What Puppy are you using?
Is the script executable? Will it run just by clicking on it?
Try using a full path, like
Is the script executable? Will it run just by clicking on it?
Try using a full path, like
Code: Select all
echo "test" > /tmp/test.log
-
- Posts: 60
- Joined: Thu 15 Nov 2012, 16:06
Try this
This would dump any error messages to the file /tmp/ntp.log
Code: Select all
ntpdate north-america.pool.ntp.org > /tmp/ntp.log 2>&1
-
- Posts: 60
- Joined: Thu 15 Nov 2012, 16:06
Thanks! I'm good now
I needed to open ntp ports in /etc/services (http://www.ducea.com/2006/09/11/error-s ... _socktype/) and make sure it was run after network startup.
I needed to open ntp ports in /etc/services (http://www.ducea.com/2006/09/11/error-s ... _socktype/) and make sure it was run after network startup.