summaryrefslogtreecommitdiffstats
path: root/debian/patches/0009-env-service.patch
blob: 70a0dc7e5ef23d66f13a0c8a4bb5209859cbfbbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Python Applications Packaging Team
 <python-apps-team@lists.alioth.debian.org>
Date: Sun, 13 May 2018 15:07:57 +0200
Subject: env-service

    Properly import environment from /etc/defaults (Closes: #832322)

    This fixes a regression in the systemd unit, which doesn't support
    the equivalent /etc/default/irker configuration supported by the
    sysvinit startup scripts.
---
 irkerd.service | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/irkerd.service b/irkerd.service
index 2318f54..a9a6675 100644
--- a/irkerd.service
+++ b/irkerd.service
@@ -6,7 +6,8 @@ Description=irker daemon
 Requires=network.target
 
 [Service]
-ExecStart=/usr/bin/irkerd
+EnvironmentFile=-/etc/default/irker
+ExecStart=/usr/bin/irkerd $IRKER_OPTIONS
 User=irker
 
 [Install]