Package: mopidy / 2.1.0-1

0003-Make-systemd-service-recreate-cache-dir-if-missing.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From 7934b03dd5699a022eea0d74d5f0a1742adac6f8 Mon Sep 17 00:00:00 2001
From: Stein Magnus Jodal <jodal@debian.org>
Date: Sat, 9 Apr 2016 14:40:40 +0200
Subject: Make systemd service recreate cache dir if missing

---
 extra/systemd/mopidy.service | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/extra/systemd/mopidy.service b/extra/systemd/mopidy.service
index 3d8abc2..e937515 100644
--- a/extra/systemd/mopidy.service
+++ b/extra/systemd/mopidy.service
@@ -10,6 +10,9 @@ After=sound.target
 
 [Service]
 User=mopidy
+PermissionsStartOnly=true
+ExecStartPre=/bin/mkdir -p /var/cache/mopidy
+ExecStartPre=/bin/chown mopidy:audio /var/cache/mopidy
 ExecStart=/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf
 
 [Install]