Skip to content

Instantly share code, notes, and snippets.

@lidgnulinux
Created February 4, 2023 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidgnulinux/b6f013fea1cb73da909f4f2dee682e12 to your computer and use it in GitHub Desktop.
Save lidgnulinux/b6f013fea1cb73da909f4f2dee682e12 to your computer and use it in GitHub Desktop.
#!/bin/sh
seatd_start() {
/usr/local/bin/seatd -g seatd 2> /dev/null &
}
seatd_stop() {
/bin/killall seatd 2> /dev/null
}
seatd_restart() {
seatd_stop
sleep 1
seatd_start
}
case "$1" in
'start')
seatd_start
;;
'stop')
seatd_stop
;;
'restart')
seatd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
# To run it automatically on boot, put these lines on /etc/rc.d/rc.local
#
# if [ -x /etc/rc.d/rc.seatd ]; then
# /etc/rc.d/rc.seatd start
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment