[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] why won't my startup script run?
- Subject: [ale] why won't my startup script run?
- From: jlightner at water.com (Jeff Lightner)
- Date: Thu, 25 Jan 2007 08:31:29 -0500
- References: <[email protected]>
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
To: ale at ale.org
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