aboutsummaryrefslogtreecommitdiffstats
path: root/community/ympd/ympd.initd
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-05 21:18:38 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-06 07:08:13 -0300
commit1ca770b26e64d16d2bd1b3a401eafadba0a66cc4 (patch)
tree3c05b68b74c0776f5bf3758c5c38479abc990008 /community/ympd/ympd.initd
parenta41860b83f49b9cfd05cb75e937623f3db4fc9df (diff)
downloadaports-1ca770b26e64d16d2bd1b3a401eafadba0a66cc4.tar.bz2
aports-1ca770b26e64d16d2bd1b3a401eafadba0a66cc4.tar.xz
community/ympd: use supervise-daemon, fix license
Diffstat (limited to 'community/ympd/ympd.initd')
-rw-r--r--community/ympd/ympd.initd8
1 files changed, 5 insertions, 3 deletions
diff --git a/community/ympd/ympd.initd b/community/ympd/ympd.initd
index 48493ef035..dcd6fd6ae9 100644
--- a/community/ympd/ympd.initd
+++ b/community/ympd/ympd.initd
@@ -1,10 +1,12 @@
#!/sbin/openrc-run
+supervisor=supervise-daemon
+
name=ympd
+description="MPD Web GUI"
+
command=/usr/bin/$name
command_args="-u $ympd_user"
-command_background=YES
-pidfile=$ympd_pid
depend() {
use logger dns
@@ -14,5 +16,5 @@ depend() {
start_pre() {
checkpath --directory --owner "$ympd_user" \
- --mode 0775 /var/run/"$name"
+ --mode 0775 /var/run/"$name"
}