diff options
author | W. Michael Petullo <mike@flyn.org> | 2018-05-12 01:43:21 -0400 |
---|---|---|
committer | Yousong Zhou <yszhou4tech@gmail.com> | 2018-07-06 10:17:05 +0800 |
commit | b4a3ac3d70ad802c87981b1642fca1292a0fe6ef (patch) | |
tree | d7d8900fe928aca6937097f24e5ec6361a92fd12 /net/dmapd/files/dmapd.init | |
parent | ebeb0607d2cdd7e49d9c94e25612b81b7f7b6dec (diff) |
dmapd: update to 0.0.75
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Diffstat (limited to 'net/dmapd/files/dmapd.init')
-rw-r--r-- | net/dmapd/files/dmapd.init | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/net/dmapd/files/dmapd.init b/net/dmapd/files/dmapd.init index 76ecd501f..33a41f1eb 100644 --- a/net/dmapd/files/dmapd.init +++ b/net/dmapd/files/dmapd.init @@ -2,8 +2,10 @@ # Copyright (C) 2009-2012 OpenWrt.org START=60 +USE_PROCD=1 +PROG=/usr/sbin/dmapd -start() { +start_service() { [ -d /var/run/dmapd ] || { mkdir -m 0755 -p /var/run/dmapd chown dmapd:dmapd /var/run/dmapd @@ -20,9 +22,11 @@ start() { mkdir -m 0755 -p /var/media/music mkdir -m 0755 -p /var/media/pictures - service_start /usr/sbin/dmapd -u dmapd -g dmapd -m /var/media/music -p /var/media/pictures --vips-disc-threshold 64k -} - -stop() { - service_stop /usr/sbin/dmapd + procd_open_instance + procd_set_param stdout 1 + procd_set_param stderr 1 + procd_set_param pidfile /var/run/dmapd.pid + procd_set_param user dmapd + procd_set_param command $PROG -f + procd_close_instance } |