Timotej Lazar
973522c373
To reuse alpine and nginx roles. Probably going to merge repos at some point.
19 lines
316 B
Plaintext
Executable file
19 lines
316 B
Plaintext
Executable file
#!/sbin/openrc-run
|
|
|
|
command="/srv/friwall/app/$RC_SVCNAME"
|
|
command_background="yes"
|
|
command_user="friwall"
|
|
command_group="nogroup"
|
|
directory="/srv/friwall"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping $RC_SVCNAME"
|
|
pkill -INT -g $(cat "$pidfile") && rm -f "$pidfile"
|
|
eend $?
|
|
}
|