I have a fresh openSuSE 11.1 install and I’m trying to figure out how to run something at startup. It’s a simple script that launches a program called vray.
I tried putting it in /etc/init.d and also tried it in /etc/init.d/rc5.d but it does not run when the machine reboots.
I know that you can turn it off & on using YaST, but I don’t see it showing up in there.
Hi
The information to create the rc softlinks (runlevels) is in the
section INIT INFO. So if certain services need to be running before
your applications starts they need to be detailed in this section
“Required-Start” likewise when shutting down “Required-Stop”. See the
man page for insserv for more details.
If you only want to start/stop/restart, just add your paths to the
script in the relevant sections and just delete the rest.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 2 days 7:48, 2 users, load average: 0.01, 0.07, 0.09
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
I’ve been having trouble with this myself. I don’t want a full init script that I can start and stop, just a simple program as well. Do you just have a bash script in there and it runs?
On 12/29/2009 11:46 AM, sailorcire wrote:
>
> malcolmlewis;2095210 Wrote:
>> Hi
>> Are you wanting the script to start your application on startup, or
>> when you log into the system and/or desktop.
>>
>> What is the script?
>>
>> –
>> Cheers Malcolm °¿° (Linux Counter #276890)
>> SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
>> up 2 days 14:23, 3 users, load average: 0.13, 0.15, 0.10
>> GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
> well the one right now is to change the way dhcpd works
>
> /usr/sbin/dhcpd eth0 -p 1067
>
> so something real simple, but later I’ll be making something with IP
> Tables
>
> so these will need to launch at start up
When you start at level X, the scripts in /etc/init.d/rcX.d/S* are executed in
alphabetic order. Characteristically, the entries in this directory are links to
a script in /etc/init.d. To implement a local script from level 5, I would copy
your dhcpd call above to /etc/init.d/local making sure it is executable by root.
To finish the setup, do the following