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