1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/soju/soju.initd
2022-03-09 04:29:18 +01:00

31 lines
590 B
Bash

#!/sbin/openrc-run
supervisor=supervise-daemon
name="soju"
description="User-friendly IRC bouncer"
: ${command_args:="-config /etc/soju/config"}
: ${error_log:=/var/log/soju.log}
command=/usr/bin/soju
command_user=soju:soju
directory="/var/lib/$RC_SVCNAME"
extra_started_commands="reload"
description_reload="Reload TLS certificate"
depend() {
need net localmount
after firewall
}
start_pre() {
checkpath -d -o $command_user "$directory"
checkpath -f -o $command_user "$error_log"
}
reload() {
ebegin "Reloading TLS certificate"
$supervisor $RC_SVCNAME --signal HUP
eend $?
}