From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,114ee061d156434b X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-11-03 08:34:00 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!peer2.news.opaltelecom.net!newsfeed.freenet.de!194.168.4.91.MISMATCH!newspeer1-gui.server.ntli.net!ntli.net!news2.euro.net!transit.news.xs4all.nl!newsfeed.xs4all.nl!xs4all!rhinewceros.xs4all.nl!not-for-mail Date: Mon, 03 Nov 2003 17:33:57 +0100 From: Eric de Redelijkheid User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl-NL; rv:1.5) Gecko/20031007 X-Accept-Language: nl, en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: Re: Cannot run a script at shutdown time. Please Help! References: <3fa2e22a$0$18488$e4fe514c@dreader4.news.xs4all.nl> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <3fa68375$0$50820$c4fe714e@dreader10.xs4all.nl> NNTP-Posting-Host: 213.84.75.126 X-Trace: 1067877238 dreader10.xs4all.nl 50820 213.84.75.126:5326 Xref: archiver1.google.com comp.unix.tru64:10882 In two steps: #shutdown now (to single user mode) #shutdown -r now (when in single user mode, behind the console :'( ) In Tru64 UNIX 5.1B this would be: #shutdown -rs now Anno Domini 3-11-2003 14:56, btna sprak aldus: >Eric, > >Thanks! How would I need to invoke the shutdown if i need to shutdown >and reboot? The way I was doing it was: shutdown -r now > >The version we have is: > UNIX V4.0G (Rev. 1530) > >Thanks in advance, >BTNA > >Eric de Redelijkheid wrote in message news:<3fa2e22a$0$18488$e4fe514c@dreader4.news.xs4all.nl>... > > >>Anno Domini 31-10-2003 21:09, btna sprak aldus: >> >>That would depend how you shutdown. If you type: shutdown -h now (to a >>halt), no shutdown scripts are ever used; Tru64 simply shuts down. >>However is you type: shutdown now (to single user mode), your script >>should work. >> >>Tru64 UNIX 5.1B has another flag to invoke stop scripts when shutting >>down: -s. If you type: shutdown -sh now, your script should work. >> >>You have tested your script by typing: /sbin/init.d/script1 start and >>/sbin/init.d/script1 stop, I presume? >> >> >> >>>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 >>> >>> >>> >>> -- -- "It's kind of...........a bummer." -- Ellen Feiss, student, 2002 --