mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
1edb88fa29
Signed-off-by: bedlam <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
19 lines
338 B
Bash
19 lines
338 B
Bash
#!/bin/sh
|
|
|
|
# 20230211 bkw: Very dumb/simple rc script for tetrinetx, part
|
|
# of the SBo build.
|
|
|
|
case "$1" in
|
|
'start'|'')
|
|
su - games -s /bin/sh -c /usr/games/tetrinetx
|
|
;;
|
|
'stop')
|
|
killall tetrinetx
|
|
;;
|
|
'restart')
|
|
$0 stop
|
|
sleep 1
|
|
exec $0 start
|
|
;;
|
|
*) echo "usage: $0 start|stop|restart" ; exit 1 ;;
|
|
esac
|