diff options
Diffstat (limited to 'net-print/cups/files/cupsd.init.d-r2')
-rw-r--r-- | net-print/cups/files/cupsd.init.d-r2 | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-print/cups/files/cupsd.init.d-r2 b/net-print/cups/files/cupsd.init.d-r2 new file mode 100644 index 000000000000..f89263077593 --- /dev/null +++ b/net-print/cups/files/cupsd.init.d-r2 @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation + +description="The Common Unix Printing System daemon" +command="/usr/sbin/cupsd" + +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 +} |