2011-12-21 22:46:53 +01:00
|
|
|
#!/sbin/runscript
|
2012-11-15 10:32:02 +01:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2011-12-21 22:46:53 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
2012-11-14 21:52:41 +01:00
|
|
|
PIDFILE=/var/run/micro_evtd.pid
|
2011-12-21 22:46:53 +01:00
|
|
|
|
|
|
|
description="Linkstation/Kurobox/Terastation micro controller daemon"
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need localmount
|
|
|
|
use logger
|
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
|
|
|
# micro_evtd doesn't start properly from s-s-d, need to investigate
|
|
|
|
ebegin "Starting ${description}"
|
2012-11-15 10:32:02 +01:00
|
|
|
#start-stop-daemon --start --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
|
|
|
|
/usr/sbin/micro-evtd
|
2011-12-21 22:46:53 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping ${description}"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile "${PIDFILE}" --exec /usr/sbin/micro-evtd
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|