aboutsummaryrefslogtreecommitdiffstats
path: root/main/mpd/mpd.initd
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-02-05 12:42:13 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2016-02-05 12:42:26 +0100
commitc46d50039feca3d368b23cf04876ab7bcc5664ea (patch)
tree58da1496be062821760a61110017ca2433af4938 /main/mpd/mpd.initd
parentc081bef5cbf4b1f506a95bb1acf9cad341b5dfca (diff)
downloadaports-c46d50039feca3d368b23cf04876ab7bcc5664ea.tar.bz2
aports-c46d50039feca3d368b23cf04876ab7bcc5664ea.tar.xz
main/mpd: set correct permissions on var/lib/mpd directory and fix init
Diffstat (limited to 'main/mpd/mpd.initd')
-rw-r--r--main/mpd/mpd.initd5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/mpd/mpd.initd b/main/mpd/mpd.initd
index b894dd2fd8..4d279da902 100644
--- a/main/mpd/mpd.initd
+++ b/main/mpd/mpd.initd
@@ -41,3 +41,8 @@ stop() {
mpd --kill
eend $?
}
+
+start_pre() {
+ checkpath --directory --owner ${M_USER:-mpd} \
+ --mode 0775 /var/run/$NAME"
+}