From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,114ee061d156434b,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-10-31 12:09:34 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: btna@terra.com (btna) Newsgroups: comp.unix.tru64 Subject: Cannot run a script at shutdown time. Please Help! Date: 31 Oct 2003 12:09:33 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 205.145.185.201 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1067630973 21736 127.0.0.1 (31 Oct 2003 20:09:33 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 31 Oct 2003 20:09:33 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:10876 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