#!/sbin/svc

MYLISTING="Storage controller"
CONTROL_GROUP="conf"
MYCFG="/etc/Pt-storage/Pt-storage.local"
MYVERSION="1.1"

start() {
	daemonize /usr/sbin/Pt-storaged --config "${MYCFG}"

	if gcs_rwvar 'gcs_is_true_varcf2' 'continuous_power' "${MYCFG}" ''
	then
		/usr/bin/Pt-storage --bg-mount --no-wait --persist
	fi
	true
}

stop() {
	killall Pt-storage 2>/dev/null
	kill_pid
}
