summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-03-24 19:07:20 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-03-24 19:07:20 -0700
commit8abef31ec6026418ada8d63271acd7bd3d172d64 (patch)
treec66e34c595b5c8a08704cf33878c3e7cec6b9748
parent3825b90a604970a996e87d46ca1e7e8c466c8210 (diff)
downloadvyatta-cfg-quagga-8abef31ec6026418ada8d63271acd7bd3d172d64.tar.gz
vyatta-cfg-quagga-8abef31ec6026418ada8d63271acd7bd3d172d64.zip
run snmpd as user snmp
-rw-r--r--scripts/snmp/snmpd.init4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/snmp/snmpd.init b/scripts/snmp/snmpd.init
index 3e4ef17b..2261b721 100644
--- a/scripts/snmp/snmpd.init
+++ b/scripts/snmp/snmpd.init
@@ -22,7 +22,7 @@ case "$1" in
echo -n "Starting network management services:"
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
start-stop-daemon --quiet --start --exec /usr/sbin/snmpd \
- -- -p /var/run/snmpd.pid
+ -- -p /var/run/snmpd.pid -u snmp
echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
@@ -47,7 +47,7 @@ case "$1" in
# Allow the daemons time to exit completely.
sleep 2
if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
- start-stop-daemon --quiet --start --exec /usr/sbin/snmpd -- -p /var/run/snmpd.pid
+ start-stop-daemon --quiet --start --exec /usr/sbin/snmpd -- -p /var/run/snmpd.pid -u snmp
echo -n " snmpd"
fi
if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then