cupsd.initd 626 B

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