[opensuse] Where do I put scripts for run at Startup
Hi all, While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located. I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located? thanks, Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Saturday 29 December 2007 21:21:24 Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
There are two files, /etc/init.d/before.local and /etc/init.d/after.local, which - if they exist - will get called before and after the runlevel scripts are run respectively They don't exist by default, but if you want something run, create the one that's appropriate depending on when you want the script to run, and call your script from it Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
which rc.local do you use? give us a complete path, not just the file name. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
All init scripts are in /etc/init.d - have a look at boot.local Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joe Sloan wrote:
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
All init scripts are in /etc/init.d - have a look at boot.local
That's the "99 1/2% right" answer. However, initialization scripts are all over the place... For example, there are several in /etc for login shells: /etc/csh.cshrc <== gets run by every new csh or tcsh /etc/csh.login <== gets run by every new login csh or tcsh /etc/profile <== gets run by every new sh, ksh or bash /etc/bash.bashrc <== gets run by every new bash And then /etc/profile.d has still more: akulkis@kulkix:/etc/profile.d> ls alias.ash groff.sh profile.sh alljava.csh gtk2.csh python.csh alljava.sh gtk2.sh python.sh bindkey.tcsh krb5.csh qt3.csh complete.bash krb5.sh qt3.sh complete.tcsh lang.csh sh.ssh csh.ssh lang.sh sh.utf8 csh.utf8 mc.csh tetex.csh cvs.csh mc.sh tetex.sh cvs.sh modules.csh via.csh desktop-data.csh modules.sh via.sh desktop-data.sh opensp.csh xdg-enviroment.csh gnome-filesystem.csh opensp.sh xdg-enviroment.sh gnome-filesystem.sh opera.sh zzz-glib2.csh gnome.csh pkgconfig.csh zzz-glib2.sh gnome.sh pkgconfig.sh groff.csh profile.csh -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Aaron Kulkis wrote:
Joe Sloan wrote:
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
All init scripts are in /etc/init.d - have a look at boot.local
That's the "99 1/2% right" answer.
OK I admit, your answer was more thorough - but in my defense, I knew that he was looking for the equivalent of the redhat rc.local script, so I didn't mention those other areas. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 30 December 2007 18:48:14 Joe Sloan wrote:
Aaron Kulkis wrote:
Joe Sloan wrote:
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
All init scripts are in /etc/init.d - have a look at boot.local
That's the "99 1/2% right" answer.
OK I admit, your answer was more thorough - but in my defense, I knew that he was looking for the equivalent of the redhat rc.local script, so I didn't mention those other areas.
Well, rc.local runs after all other runlevel scripts, so boot.local isn't really an equivalent, since it runs before everything. For example, when boot.local runs, there is (usually) no network running, and no services have been started Anders -- Madness takes its toll -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Sunday 30 December 2007 18:48:14 Joe Sloan wrote:
Joe Sloan wrote:
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located? All init scripts are in /etc/init.d - have a look at boot.local That's the "99 1/2% right" answer. OK I admit, your answer was more thorough - but in my defense, I knew
Aaron Kulkis wrote: that he was looking for the equivalent of the redhat rc.local script, so I didn't mention those other areas.
Well, rc.local runs after all other runlevel scripts, so boot.local isn't really an equivalent, since it runs before everything. For example, when boot.local runs, there is (usually) no network running, and no services have been started
True, true, but my intent was to drop him into the right directory and point him at an example file - boot.local might have suited his needs. I do remember that about rc.local back in the day when I was doing redhat, it ran last, and that's where I'd always put all the extra stuff that needed to get run. Joe -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Anders Johansson wrote:
On Sunday 30 December 2007 18:48:14 Joe Sloan wrote:
Aaron Kulkis wrote:
Joe Sloan wrote:
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
All init scripts are in /etc/init.d - have a look at boot.local
That's the "99 1/2% right" answer.
OK I admit, your answer was more thorough - but in my defense, I knew that he was looking for the equivalent of the redhat rc.local script, so I didn't mention those other areas.
Well, rc.local runs after all other runlevel scripts, so boot.local isn't really an equivalent, since it runs before everything. For example, when boot.local runs, there is (usually) no network running, and no services have been started
Then use after.local. -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Mark Weaver wrote:
Hi all,
While I'm not at all new to Linux, I'm quite new to Suse Linux and having a bit of a challenge finding where certain things are located.
I've got a bash script that initializes my wireless adapter and on redhat based systems I'm call the script from rc.local, but so far as I can see there isn't such a file on my OpenSuse 10.3 system. I guess my question is where is the Suse equivilant of the rc.local file located?
thanks,
Mark
/etc/init.d/boot.local -- Use OpenOffice.org http://www.openoffice.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Aaron Kulkis
-
Anders Johansson
-
James Knott
-
Joe Sloan
-
Mark Weaver