In regard to: LPRng: Changing Spoolers on RedHat 9, Patrick Powell said (at...:

>               if [ -f /etc/xinetd.d/cups-lpd ] ; then
>                       perl -spi -e 's/disable.*/disable = yes/' 
> /etc/xinetd.d/cups-lpd
>                       killall -HUP xinetd
>               fi

chkconfig can control xinetd based services too, so this could be
simplified to

        chkconfig cups-lpd off
        chkconfig xinetd condrestart

You can also use

        chkconfig --list cups-lpd

to test for the existence of that init script, rather than having to check
for a file (that could possibly some place else on some RH-like
distribution).

Tim
-- 
Tim Mooney                              [EMAIL PROTECTED]
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to