packages: net-snmp/snmpd.upstart (NEW) - upstart config

glen glen at pld-linux.org
Thu Jan 27 23:00:54 CET 2011


Author: glen                         Date: Thu Jan 27 22:00:54 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- upstart config

---- Files affected:
packages/net-snmp:
   snmpd.upstart (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/net-snmp/snmpd.upstart
diff -u /dev/null packages/net-snmp/snmpd.upstart:1.1
--- /dev/null	Thu Jan 27 23:00:54 2011
+++ packages/net-snmp/snmpd.upstart	Thu Jan 27 23:00:49 2011
@@ -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
================================================================


More information about the pld-cvs-commit mailing list