source:
freewrt/package/net-snmp/files/snmpd.init@
621d5d2
| Last change on this file since 621d5d2 was db3e86d, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 317 bytes | |
| Line | |
|---|---|
| 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/rc.conf |
| 4 | |
| 5 | case $1 in |
| 6 | autostart) |
| 7 | test x"${snmpd:-NO}" = x"NO" && exit 0 |
| 8 | exec $0 start |
| 9 | ;; |
| 10 | start) |
| 11 | [ -d /var/lib/snmp ] || mkdir -p /var/lib/snmp |
| 12 | snmpd ${snmpd_flags} |
| 13 | ;; |
| 14 | stop) |
| 15 | killall snmpd |
| 16 | ;; |
| 17 | restart) |
| 18 | $0 stop |
| 19 | $0 start |
| 20 | ;; |
| 21 | *) |
| 22 | echo "Usage: $0 {start | stop | restart}" |
| 23 | exit 1 |
| 24 | ;; |
| 25 | esac |
| 26 | exit $? |
Note:
See TracBrowser
for help on using the repository browser.
