Move to an envfile for the debian package

This commit is contained in:
Pim van Pelt
2025-06-17 00:55:45 +02:00
parent 7f81b51c1f
commit 6063db7311
3 changed files with 18 additions and 1 deletions

View File

@ -4,9 +4,10 @@ After=network.target vpp.service
[Service]
Type=simple
EnvironmentFile=-/etc/default/govpp-snmp-agentx
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
ExecStart=/usr/sbin/govpp-snmp-agentx $GOVPP_SNMP_AGENTX_FLAGS
User=Debian-snmp
Group=vpp
ExecReload=/bin/kill -HUP $MAINPID