#!/sbin/svc

MYLISTING="Data file recorder"
CONTROL_GROUP="conf"
MYCFG="/etc/gdi-record/gdi-record.local"
MYVERSION="1.2"

depend() {
	# We use requires and not depends because we don't actually want to stop
	# the storage scanner/recorder if the various services aren't running.
	# Instead we do what we can and log, clearly and visibly, what is
	# missing.
	requires Pt-storage
	std_requires "gdi-record" "${MYCFG}"
}

start() {
	daemonize /usr/sbin/gdi-recordd --config "${MYCFG}"
}

stop() {
	kill_pid
}
