Created
February 4, 2023 07:26
-
-
Save lidgnulinux/b6f013fea1cb73da909f4f2dee682e12 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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