Problem with /etc/init.d/
Jean-Charles COLLIN (centile)
jccollin at centile.com
Tue Feb 10 19:08:13 UTC 2004
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 at redhat.com
[mailto:fedora-list-admin at redhat.com]De la part de Alexander Dalloz
Envoyé : Tuesday, February 10, 2004 6:39 PM
À : fedora-list at redhat.com
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 at redhat.com
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
More information about the users
mailing list