- Updated initscript for LSB exit codes and actions (bug #246897).
This commit is contained in:
parent
0939b20181
commit
4c05344dab
12
cups.init
12
cups.init
@ -46,7 +46,7 @@ start () {
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
|
[ $RETVAL = 0 ] && touch /var/lock/subsys/cups
|
||||||
return $RETVAL
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
@ -56,6 +56,7 @@ stop () {
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
|
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/cups
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
restart() {
|
restart() {
|
||||||
@ -73,7 +74,7 @@ case $1 in
|
|||||||
restart)
|
restart)
|
||||||
restart
|
restart
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart|try-restart)
|
||||||
[ -f /var/lock/subsys/cups ] && restart || :
|
[ -f /var/lock/subsys/cups ] && restart || :
|
||||||
;;
|
;;
|
||||||
reload)
|
reload)
|
||||||
@ -82,6 +83,13 @@ case $1 in
|
|||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
;;
|
;;
|
||||||
|
force-reload)
|
||||||
|
echo -n $"Reloading $prog: "
|
||||||
|
if ! killproc $DAEMON -HUP; then
|
||||||
|
restart
|
||||||
|
fi
|
||||||
|
echo
|
||||||
|
;;
|
||||||
status)
|
status)
|
||||||
status $DAEMON
|
status $DAEMON
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
@ -452,6 +452,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{cups_serverbin}/daemon/cups-lpd
|
%{cups_serverbin}/daemon/cups-lpd
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 1 2008 Tim Waugh <twaugh@redhat.com>
|
||||||
|
- Updated initscript for LSB exit codes and actions (bug #246897).
|
||||||
|
|
||||||
* Thu Jan 24 2008 Tim Waugh <twaugh@redhat.com> 1:1.3.5-3
|
* Thu Jan 24 2008 Tim Waugh <twaugh@redhat.com> 1:1.3.5-3
|
||||||
- Build requires autoconf.
|
- Build requires autoconf.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user