From 0a58b89af7fafc04285a9b3bee43cd3c02864aba Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Tue, 20 Sep 2016 15:39:15 +0200 Subject: Add systemd unit files. Closes: #798430 Partly based on former work of Timo Aaltonen . --- debian/apache2.apache-htcacheclean@.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 debian/apache2.apache-htcacheclean@.service (limited to 'debian/apache2.apache-htcacheclean@.service') diff --git a/debian/apache2.apache-htcacheclean@.service b/debian/apache2.apache-htcacheclean@.service new file mode 100644 index 00000000..1ec2f62d --- /dev/null +++ b/debian/apache2.apache-htcacheclean@.service @@ -0,0 +1,16 @@ +[Unit] +Description=Disk Cache Cleaning Daemon for Apache HTTP Server +After=apache2@%i.service + +[Service] +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_OPTIONS=-n +EnvironmentFile=-/etc/default/apache-htcacheclean-%I +ExecStart=/usr/bin/htcacheclean -d $HTCACHECLEAN_DAEMON_INTERVAL -p $HTCACHECLEAN_PATH -l $HTCACHECLEAN_SIZE $HTCACHECLEAN_OPTIONS + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3