Hi, Sorry for previous html format (i'm a newbie in the list)! > I'm not sure, but the only way to make this script work was to touch a /var/lock/subsys/<server_name> file, and then it shows the corresponding line during shutdown. Maybe "shutdown" look for such a file ?! > After looking in /etc/init.d/sshd script I realized that it creates this kind of file....so I did the same ! -- Jean-Charles -----Message d'origine----- De : fedora-list-admin@xxxxxxxxxx [mailto:fedora-list-admin@xxxxxxxxxx]De la part de Alexander Dalloz Envoyà : Tuesday, February 10, 2004 6:39 PM à : fedora-list@xxxxxxxxxx Objet : Re: Problem with /etc/init.d/ Am Di, den 10.02.2004 schrieb Jean-Charles COLLIN um 18:21: > Hi all, > > I encountered a nice problem today concerning a customized script that > I want to start and shutdown automatically. This script is chkconfig > compliant (on : 2345 off:016) but I could not see the shutdown line > (example : Shutdown Server IPBX [OK]) > > I solved the problem with creating a /var/lock/subsys/<servername> > file, which refers to /etc/init.d/<servername> > > Does someone have already been in front of this kind of thing ? > > thx > > -- > Jean-Charles I do not see your problem. Your init script must create/touch a file in /var/lock/subsys. The functions script is checking for this. For example look at /etc/init.d/xinetd and see how it is build up. Alexander P.S. Please send messages to the list in plain/text only and no html. -- Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13 Fedora GNU/Linux Core 1 (Yarrow) on Athlon CPU kernel 2.4.22-1.2149.nptl Sirendipity 18:36:27 up 1 day, 21:19, load average: 0.53, 0.15, 0.10 [ ÎÎÏÎÎ Ï'ÎÏÏÎÎ - gnothi seauton ] -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list --- Ce Mail est certifià sÃcurisà (Virus free) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004 --- Le mail envoyà est certifià sÃcurisà (Virus free) Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004