| Author |
Message |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: 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.
Last edited by sunburnt on Wed 24 Mar 2010, 20:48; edited 1 time in total
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
Shel
Joined: 11 Apr 2009 Posts: 102 Location: Seattle, WA, USA, or Southern France
|
Posted: Thu 25 Mar 2010, 13:55 Post subject:
|
|
There's always /root/Startup for your own start-up stuff.
-Shel
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4006 Location: Arizona, U.S.A.
|
Posted: 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
|
|
 |
seaside
Joined: 11 Apr 2007 Posts: 835
|
Posted: 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
|
|
 |
|