diff options
Diffstat (limited to 'main/net-snmp/initd')
-rw-r--r-- | main/net-snmp/initd | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main/net-snmp/initd b/main/net-snmp/initd new file mode 100644 index 0000000000..3790d770f0 --- /dev/null +++ b/main/net-snmp/initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run + +pidfile="/var/run/${SVCNAME}.pid" +command="/usr/sbin/${SVCNAME}" +command_args="-p ${pidfile} ${OPTS}" +required_files="/etc/snmp/${SVCNAME}.conf" +extra_started_commands="reload" + +depend() { + use logger + need net + after firewall +} + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile ${pidfile} --name ${SVCNAME} + eend $? +} |