szczanieckiej 383 B

1234567891011121314151617181920212223
  1. #!/sbin/openrc-run
  2. supervisor=supervise-daemon
  3. name=szczanieckiej
  4. command="/usr/bin/$name"
  5. command_args="serve"
  6. pidfile="/run/$name.pid"
  7. command_user="www:www"
  8. extra_started_commands="reload"
  9. logdir="/var/log/szczanieckiej"
  10. logfile="$logdir/szczanieckiej.log"
  11. depend() {
  12. need net
  13. use logger
  14. after firewall
  15. }
  16. reload() {
  17. pid=$(pgrep -f 'szczanieckiej serve')
  18. kill -USR1 $pid
  19. }