View Single Post

   
  #7 (permalink)  
Old 03-06-2008, 03:03 PM
Beej Jorgensen
 
Posts: n/a
Default Re: starting cupsd at boot

Vwaju <lou@manhattanhandyman.com> wrote:
>rc.cups is executable and if it is, runs it. Can you tell me what the
>script is that runs rc.cups? (I tried to write a script with a for-
>loop to grep all the files in rc.d for rc.cups, but my shell
>programming is a little rusty...)


grep -n will even tell you the line numbers:

# grep -n rc.cups /etc/rc.d/*
/etc/rc.d/rc.M:150:if [ -x /etc/rc.d/rc.cups ]; then
/etc/rc.d/rc.M:158: /etc/rc.d/rc.cups start

(translation: if /etc/rc.d/rc.cups is executable, then rc.cups start)

Many (most?) shell scripts in /etc/rc.d are enabled or disabled by
setting them executable or not.

-Beej

Reply With Quote