~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to debian/snmpd.init

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-12-17 00:58:14 UTC
  • mfrom: (1.1.7 lenny)
  • Revision ID: james.westby@ubuntu.com-20081217005814-y4m7weogl01hpal5
Tags: 5.4.1~dfsg-12ubuntu1
* Merge from debian unstable, remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. LP: #104738)
* Removed multiuser option when calling update-rc.d (LP: #254261).
* debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcd.1
  (LP: #250459)
* debian/snmp.init: LSBify the snmpd.init script. Add status notification,
  based on initial patch by Gary Coady. (LP: #43575)

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
  start)
43
43
    log_daemon_msg "Starting network management services:"
44
44
    if [ "$SNMPDRUN" = "yes" -a -f /etc/snmp/snmpd.conf ]; then
45
 
        start-stop-daemon --quiet --start --exec /usr/sbin/snmpd \
 
45
        start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmpd \
46
46
            -- $SNMPDOPTS
47
47
        log_progress_msg "snmpd"
48
48
    fi
49
49
    if [ "$TRAPDRUN" = "yes" -a -f /etc/snmp/snmptrapd.conf ]; then
50
 
        start-stop-daemon --quiet --start --exec /usr/sbin/snmptrapd \
 
50
        start-stop-daemon --quiet --start --oknodo --exec /usr/sbin/snmptrapd \
51
51
            -- $TRAPDOPTS
52
52
        log_progress_msg "snmptrapd"
53
53
    fi