cupsd.init.d-r3 584 B

1234567891011121314151617181920212223
  1. #!/sbin/openrc-run
  2. # Copyright 1999-2017 Gentoo Foundation
  3. description="The Common Unix Printing System daemon"
  4. command="/usr/sbin/cupsd"
  5. command_args="-f -c /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf"
  6. pidfile="/var/run/cupsd.pid"
  7. start_stop_daemon_args="-b -m --pidfile ${pidfile}"
  8. depend() {
  9. use net
  10. @neededservices@
  11. before nfs
  12. after logger
  13. }
  14. start_pre() {
  15. checkpath -q -d -m 0775 -o root:lp /var/cache/cups
  16. checkpath -q -d -m 0775 -o root:lp /var/cache/cups/rss
  17. checkpath -q -d -m 0755 -o root:lp /run/cups
  18. checkpath -q -d -m 0511 -o lp:lpadmin /run/cups/certs
  19. }