summaryrefslogtreecommitdiff
path: root/scripts/snmp/snmpd.init
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/snmp/snmpd.init')
-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