initial commit of file from CVS for smeserver-geneweb on Sat Sep 7 19:54:18 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 19:54:18 +10:00
parent 1bce18ef70
commit 3100c4d82e
94 changed files with 6132 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
#!/bin/sh
#
# geneweb: Starts the genealogy Server
# description: Starts and stops the genealogy Server at boot time and shutdown.
#
GWLANG=$(/sbin/e-smith/db configuration getprop sysconfig Language | sed -e 's/_.*$//')
BD=$(/sbin/e-smith/db configuration getprop geneweb DBDir || echo "/opt/geneweb/bases")
HD="/opt/geneweb/gw/gw"
BIN=$HD/gwd
LOGF="/var/log/gwd.log"
start() {
echo -n "Starting GeneWeb Services (geneweb):"
$BIN -daemon -hd $HD -bd $BD -lang $GWLANG
/bin/su -s /bin/bash geneweb -c "$BIN -daemon -hd $HD -bd $BD -lang $GWLANG >>$LOGF 2>>\&1"
}
cd $BD
case "$1" in
start)
$1
;;
*)
echo "*** Usage: geneweb {start}"
exit 1
;;
esac
exit 0