From dce4f3e5b343e66d88ba2e47b14902264d42988c Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Wed, 15 Feb 2017 01:42:23 +0100 Subject: net-print/cups: Switch to using pidfile, bug 551544 Package-Manager: Portage-2.3.3, Repoman-2.3.1 --- net-print/cups/files/cupsd.init.d-r3 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net-print/cups/files/cupsd.init.d-r3 (limited to 'net-print/cups/files') 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 +} -- cgit v1.2.3-65-gdbad