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

Re: Install a `service'

Michael Fratoni <mfratoni tuxfan homeip net> writes:

> On Wednesday 04 December 2002 11:01 pm, Harry Putnam wrote:
>> Pretty sure I recall being able to put an init script in
>> /etc/rc.d/init.d  and then that script would be seen by such tools as
>> chkconfig  setup  ntsysv would see it and be be able to setup the
>> symlink.
>> That doesn't seem to work for me now.
>> I've built a cvs source for spamassassin, and installed an init
>> script -  /etc/rc.d/init.d/spamassassin
>>   ls -l /etc/rc.d/init.d/spamassassin
>> -rwxr-xr-x 1 root root 1220 Sep 10 00:22 /etc/rc.d/init.d/spamassassin
>> This script actually works when called with
>>   service spamassassin status/start/restart etc
>> But isn't seen by the above mentioned tools.
> You need to include comments that chkconfig understands at the top of the 
> file. I have one here I set up to start my firewall.


> Once created, use 
> chkconfig --add name
> chkconfig name on

My script had the requisit headers but apparently the missing
ingrediant was `chkconfig -add NAME'. ... thanks.

Has this always been required?  I thought I remembered in previous
releases, just adding the script and it was seen automatically.

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