Files
extra/ympd/ympd.initd
2025-06-22 20:39:04 -05:00

23 lines
385 B
Plaintext

#!/sbin/openrc-run
supervisor=supervise-daemon
name=ympd
description="MPD Web GUI"
pidfile="/run/${RC_SVCNAME}.pid"
command=/usr/bin/$name
command_args_background="-u $ympd_user"
command_background=true
depend() {
use logger dns
need net
after firewall
}
start_pre() {
checkpath --directory --owner "$ympd_user" \
--mode 0775 /var/run/"$name"
}