1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-20 09:45:12 +03:00
aports/testing/soju/soju.initd
Michał Polański 6a23d33f80 testing/soju: new aport
User-friendly IRC bouncer
https://soju.im/
2021-05-26 13:52:01 +00:00

27 lines
484 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
name="soju"
description="User-friendly IRC bouncer"
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() {
[ -n "$error_log" ] && checkpath -f -o soju:soju "$error_log"
}
reload() {
ebegin "Reloading TLS certificate"
$supervisor $RC_SVCNAME --signal HUP
eend $?
}