summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2017-02-15 01:42:23 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2017-02-15 01:42:44 +0100
commitdce4f3e5b343e66d88ba2e47b14902264d42988c (patch)
tree5b5bfc2868ab6de65313a17e0c1dee0a838fee7d /net-print/cups/files
parentapp-text/ghostscript-gpl: Remove redundant warning, bug 547172 (diff)
downloadgentoo-dce4f3e5b343e66d88ba2e47b14902264d42988c.tar.gz
gentoo-dce4f3e5b343e66d88ba2e47b14902264d42988c.tar.bz2
gentoo-dce4f3e5b343e66d88ba2e47b14902264d42988c.zip
net-print/cups: Switch to using pidfile, bug 551544
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-print/cups/files')
-rw-r--r--net-print/cups/files/cupsd.init.d-r323
1 files changed, 23 insertions, 0 deletions
diff --git a/net-print/cups/files/cupsd.init.d-r3 b/net-print/cups/files/cupsd.init.d-r3
new file mode 100644
index 000000000000..20373414e9c0
--- /dev/null
+++ b/net-print/cups/files/cupsd.init.d-r3
@@ -0,0 +1,23 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# $Id$
+
+description="The Common Unix Printing System daemon"
+command="/usr/sbin/cupsd"
+command_args="-f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf"
+pidfile="/var/run/cupsd.pid"
+start_stop_daemon_args="-b -m --pidfile ${pidfile}"
+
+depend() {
+ use net
+ @neededservices@
+ before nfs
+ after logger
+}
+
+start_pre() {
+ checkpath -q -d -m 0775 -o root:lp /var/cache/cups
+ checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
+ checkpath -q -d -m 0755 -o root:lp /run/cups
+ checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
+}