diff options
Diffstat (limited to 'nonsystemd/cups-openrc/cupsd.initd')
-rw-r--r-- | nonsystemd/cups-openrc/cupsd.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nonsystemd/cups-openrc/cupsd.initd b/nonsystemd/cups-openrc/cupsd.initd new file mode 100644 index 000000000..4d7952c72 --- /dev/null +++ b/nonsystemd/cups-openrc/cupsd.initd @@ -0,0 +1,23 @@ +#!/usr/bin/openrc-run +# Copyright 1999-2017 Gentoo Foundation + +supervisor="supervise-daemon" +description="The Common Unix Printing System daemon" +command="/usr/bin/cupsd" +command_args="-f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf" +#pidfile="/run/cupsd.pid" +#start_stop_daemon_args="-b -m --pidfile ${pidfile}" + +depend() { + use net + need dbus avahi-daemon + before nfs + after logger +} + +start_pre() { + checkpath -q -d -m 0775 -o root:cups /var/cache/cups + checkpath -q -d -m 0775 -o root:cups /var/cache/cups/rss + checkpath -q -d -m 0755 -o root:cups /run/cups + checkpath -q -d -m 0511 -o daemon:sys /run/cups/certs +} |