initial import
This commit is contained in:
22
ympd/ympd.initd
Normal file
22
ympd/ympd.initd
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/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"
|
||||
}
|
||||
Reference in New Issue
Block a user