1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/testing/ntfy/ntfy.initd
2022-09-06 22:38:28 +02:00

20 lines
378 B
Bash

#!/sbin/openrc-run
name=ntfy
command="/usr/bin/ntfy"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
error_log="/var/log/ntfy.log"
command_user="ntfy:ntfy"
depend() {
need net
after firewall
}
start_pre() {
checkpath -f --owner "$command_user" --mode 0644 \
/var/log/ntfy.log
checkpath -d --owner "$command_user" --mode 0755 \
/var/lib/ntfy/
}