mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 09:46:43 +02:00
26 lines
535 B
Bash
Executable file
26 lines
535 B
Bash
Executable file
#!/sbin/openrc-run
|
|
|
|
name="gotify"
|
|
description="gotify notification server"
|
|
|
|
command_user="gotify:gotify"
|
|
|
|
command="/usr/bin/gotify-server"
|
|
command_args="$command_args"
|
|
command_background="yes"
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
error_log="/var/log/gotify.log"
|
|
|
|
start_pre() {
|
|
checkpath -f --owner "$command_user" --mode 0640 \
|
|
/etc/gotify/config.yml
|
|
checkpath -f --owner "$command_user" --mode 0644 \
|
|
/var/log/gotify.log
|
|
checkpath -d --owner "$command_user" --mode 0755 \
|
|
/var/lib/gotify/
|
|
}
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|