2015-09-30 17:05:12 +03:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
2021-09-29 11:15:11 +00:00
|
|
|
: ${OPTS:="-LSwd -Lf /dev/null"}
|
2015-10-12 11:58:57 +00:00
|
|
|
|
2021-09-29 11:15:11 +00:00
|
|
|
pidfile="/run/${SVCNAME}.pid"
|
2015-09-30 17:05:12 +03:00
|
|
|
command="/usr/sbin/${SVCNAME}"
|
2021-09-29 11:15:11 +00:00
|
|
|
command_args="-f -p ${pidfile} ${OPTS}"
|
|
|
|
command_background="yes"
|
2015-09-30 17:05:12 +03:00
|
|
|
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 $?
|
|
|
|
}
|