aboutsummaryrefslogtreecommitdiff
path: root/init/varnish-mib.service
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-02-14 16:07:19 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-02-14 16:10:39 +0200
commit2d2e9e1fdadb5af7bfd5a2a77500218b592034e1 (patch)
tree01aab262490eeff1dcea109767719ba1f84b50fc /init/varnish-mib.service
parentfe4dd5c7fe77591ee8d7780d3f5e2e9b9334c2c5 (diff)
downloadvarnish-mib-2d2e9e1fdadb5af7bfd5a2a77500218b592034e1.tar.gz
varnish-mib-2d2e9e1fdadb5af7bfd5a2a77500218b592034e1.tar.bz2
Version 4.0release-4.0
* Makefile.am: Add init. * NEWS: Update. * README: Mention initialization files from init. * configure.ac: Version 4.0 * init/README: New file. * init/debian: New file. * init/rh: New file. * init/slackware: New file. * init/slackware.genrc: New file. * init/varnish-mib.service: New file. * src/main.c: Minor fixes.
Diffstat (limited to 'init/varnish-mib.service')
-rw-r--r--init/varnish-mib.service25
1 files changed, 25 insertions, 0 deletions
diff --git a/init/varnish-mib.service b/init/varnish-mib.service
new file mode 100644
index 0000000..cce3ecc
--- /dev/null
+++ b/init/varnish-mib.service
@@ -0,0 +1,25 @@
+# Systemd service file for varnish-mib
+# Usage:
+# 1. Copy to /etc/systemd/system/
+# 2. [Optional] Verify using
+# systemd-analyze verify varnish-mib.service
+# 3. Enable/disable:
+# systemctl enable|disable varnish-mib
+# 4. Normal operations
+# systemctl status|start|stop varnish-mib
+# 5. After any modifications to the file, run
+# systemctl daemon-reload
+[Unit]
+Description=Varnish MIB SNMP agent
+After=varnish.service
+After=snmpd.service
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/varnish-mib -p /var/run/varnish-mib.pid
+PIDFile=/var/run/varnish-mib.pid
+Restart=on-failure
+RestartSec=10
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file

Return to:

Send suggestions and report system problems to the System administrator.