From: btna@terra.com (btna)
Subject: Cannot run a script at shutdown time. Please Help!
Date: 31 Oct 2003 12:09:33 -0800 [thread overview]
Message-ID: <d6f45fa8.0310311209.2f9517d6@posting.google.com> (raw)
All,
I am trying to run a script after cron has been stopped after running
a shutdown.
I have created the script under /sbin/init.d with the follwing
permissions:
-rwxr-xr-x 1 root system 2488 Oct 24 12:12 script1
The script contains an if-statement for "start" and one for "stop".
I have created the following links for the "stop":
/sbin/rc0.d:
lrwxrwxrwx 1 root bin 16 Oct 24 10:33 K00script1@ ->
../init.d/script1
and the same for /sbin/rc2.d.
For the "start":
lrwxrwxrwx 1 root bin 16 Oct 21 11:06 S47script1@ ->
../init.d/script1
The start works well when the system starts. However, the stop
statement never gets called when I issue a shutdown.
What should i be looking at? what am I doing wrong?
Any help would be appreciated.
Thanks in advance,
BTNA
next reply other threads:[~2003-10-31 20:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-31 20:09 btna [this message]
2003-10-31 22:28 ` Cannot run a script at shutdown time. Please Help! Eric de Redelijkheid
2003-11-03 13:56 ` btna
2003-11-03 16:33 ` Eric de Redelijkheid
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox