123456789101112131415161718192021 |
- #!/sbin/openrc-run
- supervisor=supervise-daemon
- name=szczanieckiej-staging
- command="/usr/bin/$name"
- command_args="-c /etc/szczanieckiej-staging.toml serve"
- pidfile="/run/$name.pid"
- command_user="www:www"
- extra_started_commands="reload"
- depend() {
- need net
- use logger
- after firewall
- }
- reload() {
- pid=$(pgrep -f 'szczanieckiej-staging serve')
- kill -USR1 $pid
- }
|