[ale] why won't my startup script run?

Tim Watts timtw at earthlink.net
Thu Jan 25 11:07:12 EST 2007


Thanks Jeff. chkconfig -s made it work!

On Thursday 25 January 2007 8:31 am, Jeff Lightner wrote:
> You should have a look at other start/stop scripts in /etc/init.d.  It
> is expected to have a "start" section and a "stop" section at a minimum
> as the init startup passes the keyword start or stop during run level
> changes.
>
> See if you have a README in your /etc/init.d directory - it will explain
> this more fully.
>
> Also on Linux you don't have to manually create the rc?.d files.  You
> can use the chkconfig command to tell it which runlevels to start at.
>
> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of Tim
> Watts
> Sent: Thursday, January 25, 2007 4:11 AM
> To: Atlanta Linux Enthusiasts
> Subject: [ale] why won't my startup script run?
>
> Hi,
>
> I can't figure out why a simple startup script isn't getting called on
> my SuSE
> 10.2 system.
>
> Here's what I'm doing:
>
> I created a file called /etc/init.d/test which just echoes hello to a
> file in
> my home dir. It works when I run it from the cmdline. Next, I create 2
> symbolic links in /etc/init.d/rc5.d: S09test and K09test. Both of these
> point
> to ../test. These also work when run from the cmdline.
>
> I then run init 3 followed by init 5 (as root). However, the output file
> does
> not get created which tells me that the script was never run. What am I
> missing?!
>
> Here is my test script:
>
> /bin/echo hello >/home/timtw/test.log
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list