1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/fisher/fisher.initd
2021-01-08 22:39:57 +01:00

30 lines
558 B
Text

#!/sbin/openrc-run
extra_started_commands="reload"
: ${command_user:="fisher"}
: ${cfgfile:="/etc/fisher/config.toml"}
: ${logfile:="/var/log/$RC_SVCNAME.log"}
name="fisher"
command="/usr/bin/fisher"
command_args="$cfgfile"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
start_stop_daemon_args="
--stdout $logfile
--stderr $logfile
--wait 200"
required_files="$cfgfile"
start_pre() {
checkpath -f -m 640 -o "$command_user" "$logfile"
}
reload() {
ebegin "Reloading $name"
start-stop-daemon --pidfile "$pidfile" --signal USR1
eend $?
}