aboutsummaryrefslogblamecommitdiffstats
path: root/testing/consolation/consolation.initd
blob: 66319a2b302928d374530bc83b7b7d93f6ce7fac (plain) (tree)




























                                                            
#!/sbin/openrc-run

cmd=/usr/sbin/consolation
cmd_args="--no-daemon"
pid=/run/consolation.pid
description="Linux Console Pointer Interface"

depend() {
	after bootmisc
}

start() {
	ebegin "Starting Consolation"
	start-stop-daemon --start --exec $cmd --background \
		--pidfile $pid --make-pidfile -- $cmd_args
	eend $?
}

stop() {
	ebegin "Stopping Consolation"
	start-stop-daemon --stop --exec $cmd
	eend $?
}

restart() {
	stop
	start
}