mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
30 lines
558 B
Text
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 $?
|
|
}
|