kumquat-buildroot/package/netsnmp/snmpd.service
David Johnson d582bf978f package/netsnmp: add a snmp user so snmpd doesn't run as root
Signed-off-by: David Johnson <dave-git@centerclick.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-08-09 20:46:49 +02:00

16 lines
386 B
Desktop File

[Unit]
Description=SNMP Daemon
After=network.target
ConditionPathExists=/etc/snmp/snmpd.conf
[Service]
Type=simple
Environment=MIBDIRS=/usr/share/snmp/mibs
Environment=SNMPDOPTS='-Lsd -Lf /dev/null -p /var/run/snmpd.pid -u snmp -g snmp 127.0.0.1'
EnvironmentFile=-/etc/default/snmpd
PassEnvironment=MIBDIRS
ExecStart=/usr/sbin/snmpd -f $SNMPDOPTS
[Install]
WantedBy=multi-user.target