mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
26 lines
538 B
Text
26 lines
538 B
Text
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
|
|
name=navidrome
|
|
description="Modern Music Server and Streamer compatible with Subsonic/Airsonic"
|
|
|
|
command=/usr/bin/navidrome
|
|
command_args="--nobanner --configfile $navidrome_configfile"
|
|
command_user="navidrome:navidrome"
|
|
directory="/var/lib/$RC_SVCNAME"
|
|
|
|
extra_started_commands="scan"
|
|
|
|
start_pre() {
|
|
[ -n "$error_log" ] && checkpath -f "$error_log" \
|
|
-m 644 -o navidrome:navidrome
|
|
}
|
|
|
|
scan() {
|
|
${supervisor} "${SVCNAME}" --signal USR1
|
|
}
|
|
|
|
depend() {
|
|
need net localmount
|
|
after firewall
|
|
}
|