Hi list,
it look like nobody checked the init.linuxsb.sh recently.
I made some fixes to get it work.
the last "exit $rc" is only a feeling. $rc should contain
the last important error. it make sense to report it to
the user also.
regards,
walter
--- init.linuxsb.sh.org 2004-05-14 16:59:39.000000000 +0200
+++ init.linuxsb.sh 2004-05-14 17:04:44.000000000 +0200
@@ -43,7 +43,7 @@
2) log_warning_msg "$name: no lock file" ;; # service dead (no lock if any)
3) log_warning_msg "$name: not running" ;; # service not running
esac
- return rc_status
+ return $rc_status
}
@@ -64,15 +64,19 @@
stop)
killproc `basename "$LPD_PATH"`
_status "Stopping lpd"
+ ;;
restart)
$0 stop
$1 start
+ ;;
force-reload)
$0 stop
$0 start
+ ;;
reload)
killproc -HUP `basename "$LPD_PATH"`
_status "Reload lpd"
+ ;;
status)
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
@@ -99,7 +103,9 @@
fi
fi
;;
+ *)
echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
exit 1
;;
esac
+exit $rc
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------