summaryrefslogtreecommitdiffabout
path: root/init/varnish-mib.service
Side-by-side diff
Diffstat (limited to 'init/varnish-mib.service') (more/less context) (ignore whitespace changes)
-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
--- a/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.