blob: cce3ecc9bd0bef45c8028e22757aebd227ccd1b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|