/[smeserver]/rpms/LPRng/sme9/lpd.init
ViewVC logotype

Diff of /rpms/LPRng/sme9/lpd.init

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Wed Feb 13 15:59:35 2013 UTC Revision 1.2 by slords, Wed Feb 13 16:39:01 2013 UTC
# Line 24  prog=lpd Line 24  prog=lpd
24    
25  RETVAL=0  RETVAL=0
26    
27  config () {  start () {
28        echo -n $"Starting $prog: "
29      # Is this a printconf system?      # Is this a printconf system?
30      if [[ -x /usr/sbin/printconf-backend ]]; then      if [[ -x /usr/sbin/printconf-backend ]]; then
31              # run printconf-backend to rebuild printcap and spools              # run printconf-backend to rebuild printcap and spools
# Line 33  config () { Line 34  config () {
34                  echo -n $"No Printers Defined"                  echo -n $"No Printers Defined"
35                  echo_success                  echo_success
36                  echo                  echo
37                  return 1                  return 0
38              fi              fi
39      fi      fi
     return 0  
 }  
   
 start () {  
     echo -n $"Starting $prog: "  
   
     if ! config; then  
         return 0  
     fi  
   
40      if ! [ -e /etc/printcap ] ; then      if ! [ -e /etc/printcap ] ; then
41          echo_failure          echo_failure
42          echo          echo
# Line 99  case "$1" in Line 90  case "$1" in
90          ;;          ;;
91      reload)      reload)
92          echo -n $"Reloading $prog: "          echo -n $"Reloading $prog: "
93          if config; then          killproc /usr/sbin/lpd -HUP
94              killproc /usr/sbin/lpd -HUP          RETVAL=$?
             RETVAL=$?  
         else  
             RETVAL=1  
         fi  
95          echo          echo
96          ;;          ;;
97      *)      *)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed