Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 16 Apr 2014, 18:35
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Derivatives
Checking that Startup script is running
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Tue 20 Nov 2012, 18:57    Post subject:  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?
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Tue 20 Nov 2012, 19:00    Post subject:  

(Sorry I posted this in wrong section. I didn't notice where I was. I'll be more careful in future.)
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8547
Location: Stratford, Ontario

PostPosted: Tue 20 Nov 2012, 19:08    Post subject:  

What Puppy are you using?

Is the script executable? Will it run just by clicking on it?

Try using a full path, like
Code:
echo "test" > /tmp/test.log
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Tue 20 Nov 2012, 20:50    Post subject:  

Yep, that was it. I didn't have the full path. Thanks!

It still isn't setting the time right, but now at least I know it is getting called and can debug. All I'm doing is running:
ntpdate north-america.pool.ntp.org

It works fine if I run the script that contains this line manually.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8547
Location: Stratford, Ontario

PostPosted: Tue 20 Nov 2012, 21:24    Post subject:  

Try this
Code:
ntpdate north-america.pool.ntp.org > /tmp/ntp.log 2>&1

This would dump any error messages to the file /tmp/ntp.log
Back to top
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: Wed 21 Nov 2012, 00:53    Post subject:  

Thanks! I'm good now Smile

I needed to open ntp ports in /etc/services (http://www.ducea.com/2006/09/11/error-servname-not-supported-for-ai_socktype/) and make sure it was run after network startup.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Derivatives
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1039s ][ Queries: 12 (0.0642s) ][ GZIP on ]