szczanieckiej-staging 366 B

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