]> git.pld-linux.org Git - packages/net-snmp.git/commitdiff
- upstart config
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 27 Jan 2011 22:00:49 +0000 (22:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    snmpd.upstart -> 1.1

snmpd.upstart [new file with mode: 0644]

diff --git a/snmpd.upstart b/snmpd.upstart
new file mode 100644 (file)
index 0000000..c8613fb
--- /dev/null
@@ -0,0 +1,16 @@
+description "SNMP Daemon"
+
+start on local-filesystems and pld.network-started and started SERVICE=syslog
+stop on pld.shutdown-started
+
+env SNMPD_LISTEN_ADDRS=
+
+respawn
+
+script
+       # Source old-style snmpd service configuration
+       [ -f /etc/sysconfig/snmpd ] && . /etc/sysconfig/snmpd
+               
+       SNMPD_LISTEN_ADDRS=""
+       exec /usr/sbin/snmpd -f -p /var/run/snmpd.pid $SNMPD_LISTEN_ADDRS
+end script
This page took 0.065883 seconds and 4 git commands to generate.