summaryrefslogtreecommitdiff
path: root/scripts/snmp/vyatta-snmp.pl
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-18 10:55:50 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-02-18 10:55:50 -0800
commitc8165a1a29572d7bf78d11c83afd18fff80a02f5 (patch)
tree65df52f63156acab6c830587ff3576856f9f1afb /scripts/snmp/vyatta-snmp.pl
parent636a269f9a3b4caeac9b5fa7bea360bfba814206 (diff)
downloadvyatta-cfg-quagga-c8165a1a29572d7bf78d11c83afd18fff80a02f5.tar.gz
vyatta-cfg-quagga-c8165a1a29572d7bf78d11c83afd18fff80a02f5.zip
Use standard mechanism to start/stop snmp
The net-snmp has snmpd.init script which is installed in standard place. Invoke it with standard mechanism to avoid any security or other problems. Also allows debugging snmpd by changing /etc/default/snmp.
Diffstat (limited to 'scripts/snmp/vyatta-snmp.pl')
-rwxr-xr-xscripts/snmp/vyatta-snmp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/snmp/vyatta-snmp.pl b/scripts/snmp/vyatta-snmp.pl
index a812eb32..01283870 100755
--- a/scripts/snmp/vyatta-snmp.pl
+++ b/scripts/snmp/vyatta-snmp.pl
@@ -34,7 +34,7 @@ use strict;
use warnings;
my $mibdir = '/opt/vyatta/share/snmp/mibs';
-my $snmp_init = '/opt/vyatta/sbin/snmpd.init';
+my $snmp_init = 'invoke-rc.d snmpd';
my $snmp_conf = '/etc/snmp/snmpd.conf';
my $snmp_client = '/etc/snmp/snmp.conf';
my $snmp_tmp = "/tmp/snmpd.conf.$$";