1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/consolation/consolation.initd
Danct12 b9e9dda696 testing/consolation: new aport
Signed-off-by: Danct12 <danct12@disroot.org>
2020-01-05 17:27:32 +01:00

29 lines
441 B
Text

#!/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
}