Initial Release - for Mystic BBS 1.1.12a39

This commit is contained in:
Deon George
2018-08-24 13:57:25 +10:00
commit 56fbac0a96
11 changed files with 297 additions and 0 deletions

24
init Executable file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
set -e
NAME="Mystic BBS"
INIT=mis
function stop {
echo "Stopping ${NAME}"
kill $(ps -Af|grep ${INIT} |grep -v grep|awk '{ print $2}')
}
trap 'stop' SIGTERM
export PATH=$PATH:/mystic
if [ "$1" == "start" ]; then
# First time install - expand out our data directory
[ $(find data|wc -l) -le 1 ] && tar xzf data.tar.gz
# OK, start
exec ${INIT} server
else
exec $@
fi