diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-02-15 01:42:23 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-02-15 01:42:44 +0100 |
commit | dce4f3e5b343e66d88ba2e47b14902264d42988c (patch) | |
tree | 5b5bfc2868ab6de65313a17e0c1dee0a838fee7d /net-print/cups/files | |
parent | app-text/ghostscript-gpl: Remove redundant warning, bug 547172 (diff) | |
download | gentoo-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-r3 | 23 |
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 +} |