| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | description="BMC Watchdog daemon" |
| 4 | pidfile="/var/run/$RC_SVCNAME.pid" |
| 5 | command="/usr/sbin/$RC_SVCNAME" |
| 6 | |
| 7 | start() { |
| 8 | ebegin "Starting $RC_SVCNAME" |
| 9 | start-stop-daemon --start \ |
| 10 | --exec $command \ |
| 11 | --pidfile $pidfile \ |
| 12 | --make-pidfile \ |
| 13 | --quiet \ |
| 14 | --background \ |
| 15 | -- \ |
| 16 | --daemon |
| 17 | $OPTIONS |
| 18 | eend $? |
| 19 | } |
| 20 | |
| 21 | stop() { |
| 22 | ebegin "Stopping $RC_SVCNAME" |
| 23 | start-stop-daemon --stop \ |
| 24 | --pidfile $pidfile |
| 25 | eend $? |
| 26 | } |