[apache2] 04/04: Fix systemd unit naming for multi-instances.

Stefan Fritsch sf at moszumanska.debian.org
Sun Nov 13 11:20:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to branch master
in repository apache2.

commit 9a7ed57a978d89dcd8f89cdde865c9e4967b3c30
Author: Stefan Fritsch <sf at sfritsch.de>
Date:   Sun Nov 13 12:13:35 2016 +0100

    Fix systemd unit naming for multi-instances.
    
    %I will unescape '-' to '/'. This means an instance name like
    proxy-balancer would try to use /etc/apache2-proxy/balancer which is not
    what we want. Use %i to avoid unescaping.
---
 debian/apache2.apache-htcacheclean at .service | 4 ++--
 debian/apache2 at .service                     | 4 ++--
 debian/changelog                            | 1 +
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/debian/apache2.apache-htcacheclean at .service b/debian/apache2.apache-htcacheclean at .service
index 1ec2f62..5cd8672 100644
--- a/debian/apache2.apache-htcacheclean at .service
+++ b/debian/apache2.apache-htcacheclean at .service
@@ -7,9 +7,9 @@ Type=forking
 User=www-data
 Environment=HTCACHECLEAN_SIZE=300M
 Environment=HTCACHECLEAN_DAEMON_INTERVAL=120
-Environment=HTCACHECLEAN_PATH=/var/cache/apache2-%I/mod_cache_disk
+Environment=HTCACHECLEAN_PATH=/var/cache/apache2-%i/mod_cache_disk
 Environment=HTCACHECLEAN_OPTIONS=-n
-EnvironmentFile=-/etc/default/apache-htcacheclean-%I
+EnvironmentFile=-/etc/default/apache-htcacheclean-%i
 ExecStart=/usr/bin/htcacheclean -d $HTCACHECLEAN_DAEMON_INTERVAL -p $HTCACHECLEAN_PATH -l $HTCACHECLEAN_SIZE $HTCACHECLEAN_OPTIONS
 
 [Install]
diff --git a/debian/apache2 at .service b/debian/apache2 at .service
index c072050..395137b 100644
--- a/debian/apache2 at .service
+++ b/debian/apache2 at .service
@@ -1,11 +1,11 @@
 [Unit]
 Description=The Apache HTTP Server
 After=network.target remote-fs.target nss-lookup.target
-ConditionPathIsDirectory=/etc/apache2-%I
+ConditionPathIsDirectory=/etc/apache2-%i
 
 [Service]
 Type=forking
-Environment=APACHE_CONFDIR=/etc/apache2-%I
+Environment=APACHE_CONFDIR=/etc/apache2-%i
 ExecStart=/usr/sbin/apachectl start
 ExecStop=/usr/sbin/apachectl stop
 ExecReload=/usr/sbin/apachectl graceful
diff --git a/debian/changelog b/debian/changelog
index b57e434..5cafd5a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ apache2 (2.4.23-7) UNRELEASED; urgency=medium
   * Move DefaultRuntimeDir and pid file for multi-instances to
     /var/run/apache2-xxx. Thanks to Horst Platz for the debugging.
     Closes: #838932 LP: #1627339
+  * Fix systemd unit naming for multi-instances.
   * Tweak embedded .tar.gz some more to build reproducibly.
 
  -- Stefan Fritsch <sf at debian.org>  Sun, 13 Nov 2016 11:06:36 +0100

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-apache/apache2.git



More information about the Pkg-apache-commits mailing list