Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465022 - net-print/cups-filters-1.0.30 cups-browsed init script should have --background
Summary: net-print/cups-filters-1.0.30 cups-browsed init script should have --background
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-07 23:57 UTC by Konstantin Münning
Modified: 2013-05-11 22:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
cups-browsed.init.d (cups-browsed,378 bytes, text/plain)
2013-04-07 23:57 UTC, Konstantin Münning
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Münning 2013-04-07 23:57:33 UTC
Created attachment 344772 [details]
cups-browsed.init.d

The init script for cups-browsed provided in net-print/cups-filters is blocking as cups-browsed is not a deamon. As described in /usr/share/doc/cups-filters-1.0.30/README.bz2 it has explicitly to be sent to background. Attached init script uses the --background option of start-stop-daemon to fix this. Please update the in-tree-script.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-08 11:25:36 UTC
Comment on attachment 344772 [details]
cups-browsed.init.d

--- files/cups-browsed.init.d   2013-02-23 18:36:44.260660032 +0100
+++ -   2013-04-08 13:25:27.986936943 +0200
@@ -6,12 +6,12 @@
 
 start() {
        ebegin "Starting cups-browsed"
-       start-stop-daemon --start --quiet --exec /usr/sbin/cups-browsed
+       start-stop-daemon --start --quiet --background --make-pidfile --pidfile /run/cups-browsed.pid --exec /usr/sbin/cups-browsed
        eend $?
 }
 
 stop() {
        ebegin "Stopping cups-browsed"
-       start-stop-daemon --stop --quiet --exec /usr/sbin/cupsd
+       start-stop-daemon --stop --quiet --pidfile /run/cups-browsed.pid --exec /usr/sbin/cupsd
        eend $?
 }
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2013-05-11 22:18:45 UTC
Has been fixed in the meantime- thanks!