From e846066fdd8e9d6cffe76d9e2f42f1e5d2721ec3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Thu, 27 Jan 2011 22:00:49 +0000 Subject: [PATCH 1/1] - upstart config Changed files: snmpd.upstart -> 1.1 --- snmpd.upstart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 snmpd.upstart diff --git a/snmpd.upstart b/snmpd.upstart new file mode 100644 index 0000000..c8613fb --- /dev/null +++ b/snmpd.upstart @@ -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 -- 2.44.0