Commit 9ef8f8e9 authored by Danomi Manchego's avatar Danomi Manchego Committed by Peter Korsgaard
Browse files

netsnmp: fix tab/space formatting in init.d script



The S59snmpd script has a strange mix of tabs and spaces.  Replace
tabs with spaces, and also remove unnecessary line continuations
from the start-stop-daemon lines, as none of them go beyond 80
columns.

Signed-off-by: default avatarDanomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 3a7aee77
Loading
Loading
Loading
Loading
+12 −15
Original line number Diff line number Diff line
@@ -42,13 +42,11 @@ case "$1" in
  start)
    echo -n "Starting network management services:"
    if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
	start-stop-daemon -q -S -x /usr/sbin/snmpd \
	    -- $SNMPDOPTS
      start-stop-daemon -q -S -x /usr/sbin/snmpd -- $SNMPDOPTS
      echo -n " snmpd"
    fi
    if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
	start-stop-daemon -q -S -x /usr/sbin/snmptrapd \
	    -- $TRAPDOPTS
      start-stop-daemon -q -S -x /usr/sbin/snmptrapd -- $TRAPDOPTS
      echo -n " snmptrapd"
    fi
    echo "."
@@ -82,8 +80,7 @@ case "$1" in
  reload|force-reload)
    echo -n "Reloading network management services:"
    if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
        start-stop-daemon -q -K -s 1 \
	    -p /var/run/snmpd.pid -x /usr/sbin/snmpd
      start-stop-daemon -q -K -s 1 -p /var/run/snmpd.pid -x /usr/sbin/snmpd
      echo -n " snmpd"
    fi
    echo "."