net-snmp: do not exit if files cannot be opened
authorStijn Tintel <redacted>
Thu, 19 Dec 2019 18:04:38 +0000 (20:04 +0200)
committerStijn Tintel <redacted>
Thu, 19 Dec 2019 18:04:38 +0000 (20:04 +0200)
If snmpd fails to open files, like /dev/kmem or /dev/mem, it exits.
Avoid this by adding the -r argument.

Signed-off-by: Stijn Tintel <redacted>
net/net-snmp/files/snmpd.init

index a7653176d4c76050f4fefc5a1f33026eb454a170..fbae9c2863ad8f7ed5b76152d4b1abb32f0afdb9 100644 (file)
@@ -317,7 +317,7 @@ start_service() {
        append_parm v1trapaddress host v1trapaddress
        append_parm trapsess trapsess trapsess
 
-       procd_set_param command $PROG -Lf /dev/null -f
+       procd_set_param command $PROG -Lf /dev/null -f -r
        procd_set_param file $CONFIGFILE
        procd_set_param respawn
 
git clone https://git.99rst.org/PROJECT