18 lines
490 B
Desktop File
18 lines
490 B
Desktop File
[Unit]
|
|
Description=GoVPP SNMP AgentX Daemon
|
|
After=network.target vpp.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=-+/usr/bin/chmod 770 /var/agentx /var/agentx/master
|
|
ExecStartPre=-+/usr/bin/chown Debian-snmp:vpp /var/agentx /var/agentx/master
|
|
ExecStart=/usr/sbin/govpp-snmp-agentx -agentx.addr /var/agentx/master -vppcfg /etc/vpp/vppcfg.yaml -vppstats.period 10
|
|
User=Debian-snmp
|
|
Group=vpp
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
RestartSec=5s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|