Well I had a power failure last night so the Rasberry PI got rebooted this morning. I started googling ways to start mystic up automagically and have tried a few things, but ended up creating a script in my /etc/rc.d folder
which I hope to use to start and stop mis and mis2.
In doing this I decided to start mis in DAEMON mode (ie mis -d). However, on
my shutdown script I'm not finding a way to shutdown mystic. Does anyone
have a way to do this?
Here's my /etc/init.d/bbs script so far:
#! /bin/sh
# /etc/init.d/noip
case "$1" in
start)
echo "Starting Mystic"
sudo /mystic/mis -d
sudo /mystic/mis2 root /mnt/usbdrive/mystic DAEMON
;;
stop)
echo "Stop Mystic"
sudo /mystic/mis2 SHUTDOWN
;;
*)
echo "Usage: /etc/init.d/bbs {start|stop}"
exit 1
;;
esac
/**Dave's BBS
telnet://davesbbs.com
* @version 2.0 fsxNet: 21:1/140
* GatorNet: 57:57/38
**/
--- Mystic BBS v1.12 A31 (Raspberry Pi)
* Origin: Daves BBS (21:1/140)