Re: shutdown scripts not executed (RH 7.2)
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 10/07/03
- Next message: Bit Twister: "Re: shutdown scripts not executed (RH 7.2)"
- Previous message: Nils O. Selåsdal: "Re: Creating a new xinetd server..."
- In reply to: Stefan Fritz: "Re: shutdown scripts not executed (RH 7.2)"
- Next in thread: Bit Twister: "Re: shutdown scripts not executed (RH 7.2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 07 Oct 2003 00:02:01 -0700
Stefan Fritz wrote:
< snip >
> function stop()
> {
> echo test stop > /tmp/test.log
No, you are erasing your prior log entries here. You wanted:
echo test stop >> /tmp/test.log
In fact, all your log entries should be appends. If you want, delete the log
file, but append otherwise.
> date >> /tmp/test.log
Wait. What's wrong with combining them:
echo "test start at `date`" >> /tmp/test.log
Obviously if your system shuts down, the standard scripts are working. Your
script may not work for any number of reasons:
1. Bad first line (not likely).
2. File not set to be executable.
3. File not readable by init (not likely).
Just make sure the permissions on your test script are identical to the
standard ones.
Have you considered putting a logging line into one of the standard scripts
as a test?
> The script gets never executed.
> Any additional info you need?
I have a question. Is this in response to a system problem, or is it more
like onanism?
-- Paul Lutus http://www.arachnoid.com
- Next message: Bit Twister: "Re: shutdown scripts not executed (RH 7.2)"
- Previous message: Nils O. Selåsdal: "Re: Creating a new xinetd server..."
- In reply to: Stefan Fritz: "Re: shutdown scripts not executed (RH 7.2)"
- Next in thread: Bit Twister: "Re: shutdown scripts not executed (RH 7.2)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|