Re: (S)tart and (K)ill Scripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Brilliant!!

Thank you!  

----- Original Message ----
From: inode0 <inode0@xxxxxxxxx>
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Sent: Friday, March 23, 2007 10:30:23 AM
Subject: Re: (S)tart and (K)ill Scripts

On 3/23/07, Sean McGlynn <sean_mcglynn@xxxxxxxxx> wrote:
> Hello,
>
> I am trying to set up a service to be started and stopped using the appropriate run levels.  I have the script to start and stop the service in /etc/rc.d/init.d, and I have created a symlink in /etc/rc.d/rc3.d named S99sas and a symlink in /etc/rc.d/rc0.d and rc6.d named K00sas, both pointing to the script in /etc/rc.d/init.d.  The start portion of the script runs, evidenced by the fact that the service is running once the server finishes booting, but the kill portion does not seem to run, which I am concluding because there is a file copy that is supposed to happen during the stop portion of the script that does not happen.
>
> Is there something else I am supposed to do to get the kill/stop portion to run?

You need to include a sybsys lock in the script. See another working
example script. There is a good explanation of this in the knowledge
base.

John

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list







 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux