[SCM] mpd-sima/master: Add optional EnvironmentFile to systemd service file

kaliko-guest at users.alioth.debian.org kaliko-guest at users.alioth.debian.org
Sun Jan 3 11:20:59 UTC 2016


The following commit has been merged in the master branch:
commit 02ab2b68be0cacf531c50b22915cca2150315a30
Author: Geoffroy Youri Berret <efrim at azylum.org>
Date:   Sun Oct 11 12:55:28 2015 +0200

    Add optional EnvironmentFile to systemd service file
    
    It allows expose HTTP_PROXY variables in systemd
    
    Closes: #801136

diff --git a/debian/mpd-sima.default b/debian/mpd-sima.default
index df69716..020fa03 100644
--- a/debian/mpd-sima.default
+++ b/debian/mpd-sima.default
@@ -1,6 +1,10 @@
 ## Defaults for the mpd-sima init script, sourced by SysV init.
 ## Comment and change values as needed.
 
+# You may set HTTP proxies here
+# HTTP_PROXY=http://proxy.example.org:8080
+# HTTPS_PROXY=http://proxy.example.org:8080
+
 # Pay attention:
 # the following variable is honored only with SysV init
 # Please use "systemctl disable mpd-sima" to prevent auto start with systemd init
diff --git a/debian/mpd-sima.service b/debian/mpd-sima.service
index 7ee2454..acab4b7 100644
--- a/debian/mpd-sima.service
+++ b/debian/mpd-sima.service
@@ -5,6 +5,7 @@ After=network.target
 [Service]
 User=mpd-sima
 Type=simple
+EnvironmentFile=-/etc/default/mpd-sima
 ExecStart=/usr/bin/mpd-sima --var_dir=/var/lib/mpd-sima/ --config=/etc/mpd-sima.cfg
 #ExecReload=/bin/kill -HUP $MAINPID
 KillMode=process

-- 
mpd-sima packaging



More information about the pkg-multimedia-commits mailing list