summaryrefslogtreecommitdiff
path: root/package/libarchive
diff options
context:
space:
mode:
authorLuca Ceresoli <luca@lucaceresoli.net>2011-08-31 21:46:38 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2011-09-11 23:09:06 +0200
commit77cc11d533f79d13e9a440823d6f5e100cbdd202 (patch)
tree5efaaa20c69054301aec69fc91f099b5376249f3 /package/libarchive
parentede8ca0019974fc999c6e9f20dfbedfeb9649c60 (diff)
netsnmp: fix stop and restart actions in init script
/etc/init.d/S59snmpd stop (and restart) currently fail if either snmpd or snmptrapd are not running. This is because start-stop-daemon -K returns nonzero if the process to be killed is not running, and this causes the whole script to fail because it runs under 'set -e'. This may not be noticed if only the last start-stop-daemon fails, but this is in general wrong. It would also cause a failure in other scripts that execute S59snmpd and check the return value. Adding the --oknodo (-o) option to start-stop-daemon fixes this. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libarchive')
0 files changed, 0 insertions, 0 deletions