#!/usr/sbin/openrc-run

description="Seat and session management daemon"

command="/usr/sbin/seatd"
pidfile="/run/seatd.pid"

depend() {
	need localmount
}

start() {
	[ -x "$command" ] || return 1

	ebegin "Starting ${RC_SVCNAME}"
	start-stop-daemon -S -b -m -p "$pidfile" -x "$command" -- ${START_ARGS:-}
	eend $?
}

stop() {
	ebegin "Stopping ${RC_SVCNAME}"
	start-stop-daemon -K -p "$pidfile"
	eend $?
}
