FS#25014 - Bug in /etc/rc.d/cups
Attached to Project:
Arch Linux
Opened by Mark (voidzero) - Monday, 04 July 2011, 12:03 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 15 July 2011, 03:54 GMT
Opened by Mark (voidzero) - Monday, 04 July 2011, 12:03 GMT
Last edited by Andreas Radke (AndyRTR) - Friday, 15 July 2011, 03:54 GMT
|
Details
In this script add_daemon uses $daemon_name which has been
set to cups. This is slightly incorrect. Although the name
of the script itself is cups, the daemon name is cupsd.
Therefore ck_daemon does not report the daemon as running
(it is looking for cups while /run/daemons contains cupsd).
This breaks the kill_everything routine because cupsd is not
found -- cups only quits after shutdown sends a HUP and a
TERM to all remaining devices.
Solution: Rename /etc/rc.d/cups to cupsd (which I favorite for consistency) or change add_daemon/rm_daemon/chk_status's argument from $daemon_name to cups. |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Friday, 15 July 2011, 03:54 GMT
Reason for closing: Fixed
Additional comments about closing: typo fixed in trunk for future builds.
Friday, 15 July 2011, 03:54 GMT
Reason for closing: Fixed
Additional comments about closing: typo fixed in trunk for future builds.
install -D -m755 ../cups ${pkgdir}/etc/rc.d/cups
should be changed to
install -D -m755 ../cups ${pkgdir}/etc/rc.d/cupsd ?
(2/2) upgrading cups [######################] 100%
daemon srcript has been renamed to /etc/rc.d/cupsd
change your entry in /etc/rc.conf
"srcript" is not a word.