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 Sat 25 Oct 2014, 13:08
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Start file in: /etc/init.d runs app. but no arg. [ Solved ]
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Wed 24 Mar 2010, 20:25    Post_subject:  Start file in: /etc/init.d runs app. but no arg. [ Solved ]  

As said, the app. starts and works except for the command line argument to pop up ROX.

Typing "ps -C auto-drive" gets: " 4612 ..... /bin/sh /root/my-applications/auto-drive/auto-drive -rox"
It shows that auto-drive was run with the argument "-rox", running "auto-drive -rox" in rxvt works fine.

I assume that the variable that holds the argument gets lost in the rest of the boot process?

Update: I tried exporting the variable to see if it would carry through the boot process... Nope.

Edited_time_total
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Wed 24 Mar 2010, 20:47    Post_subject:  

Success.!!! It works properly when I put the command line in the file: /root/.xinitrc

SO... This is a very good argument for my suggestion in my other post: "Q and Suggestion".
Why not have a dir.: /etc/init.x for startup files to run any apps. late in the boot process?
It appears that using the standard startup dir.: /etc/init.d has some serious drawbacks...
Back to top
View user's profile Send_private_message 
Shel

Joined: 11 Apr 2009
Posts: 103
Location: Seattle, WA, USA, or Southern France

PostPosted: Thu 25 Mar 2010, 13:55    Post_subject:  

There's always /root/Startup for your own start-up stuff.

-Shel
Back to top
View user's profile Send_private_message 
sunburnt


Joined: 08 Jun 2005
Posts: 5037
Location: Arizona, U.S.A.

PostPosted: Thu 25 Mar 2010, 14:12    Post_subject:  

It looks like that dir. is what I was looking for, I searched /root/.xinitrc for a dir. like this.
I wonder what script it is run from?
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 887

PostPosted: Thu 25 Mar 2010, 18:41    Post_subject:  

sunburnt,

Another possibility is placing the startup program in JWM like this
Code:
 <StartupCommand>program-name</StartupCommand>


Programs placed in /root/Startup are run at the end of the /usr/sbin/delayedrun script.

Cheers,
s
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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