diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/mpdas/files/mpdas.init |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/mpdas/files/mpdas.init')
-rw-r--r-- | media-sound/mpdas/files/mpdas.init | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/media-sound/mpdas/files/mpdas.init b/media-sound/mpdas/files/mpdas.init new file mode 100644 index 000000000000..bcb2367665b2 --- /dev/null +++ b/media-sound/mpdas/files/mpdas.init @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use net mpd +} + +start() { + ebegin "Starting mpdas" + start-stop-daemon --background --start --exec /usr/bin/mpdas \ + --make-pidfile --pidfile /run/mpdas.pid + eend $? +} + +stop() { + ebegin "Stopping mpdas" + start-stop-daemon --stop --exec /usr/bin/mpdas \ + --pidfile /run/mpdas.pid + eend $? +} |