Click to See Complete Forum and Search --> : How do I add a start up script?


jdm34
05-01-2001, 11:43 AM
Say I wanted to run a program upon startup in linux with options ie;

./bin/program --x=blah


How would I go about doing this?

Thanks,
Jed

kmj
05-01-2001, 02:18 PM
Do you want to run this when a user logs in or when linux boot up?

jdm34
05-01-2001, 04:08 PM
Originally posted by kmj:
<STRONG>Do you want to run this when a user logs in or when linux boot up?</STRONG>

on linux boot

Paul Weaver
05-01-2001, 07:46 PM
what distro?

jdm34
05-01-2001, 11:44 PM
Originally posted by Paul Weaver:
<STRONG>what distro?</STRONG>

Mandrake 8.0

kmj
05-02-2001, 10:03 AM
Well, I'm not at my box right now (and to be honest I haven't even looked at this stuff in about 4 months), but Mandrake used a folder in etc. called init.d for all it's initialization stuff. I [i]believe[/b] that within there, there is a directory for each runlevel, and you need to place the scripts in the directory for the runlevel you want...
I'm sure there's more to it than that, perhaps searching google for 'init.d script Mandrake' etc, will find you some goode examples.

I should have mentioned this last time, but since this is more of a 'linux' question than an actual programming question, you'd probably get more responses and faster if you had posted this in the 'general linux questions' forum.