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,14 @@
[Unit]
Description=Geneweb Service
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
## Is geneweb service enabled in config db ?
ExecStartPre=/sbin/e-smith/service-status geneweb
ExecStart=/bin/bash /usr/lib/systemd/systemd-geneweb start
RemainAfterExit=yes
[Install]
WantedBy=sme-server.target

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Geneweb administration Service (gwsetup)
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
## Is geneweb service enabled in config db ?
ExecStartPre=/sbin/e-smith/service-status gwsetup
ExecStart=/bin/bash /usr/lib/systemd/systemd-gwsetup start
RemainAfterExit=yes
[Install]
WantedBy=sme-server.target

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

View File

@@ -0,0 +1,32 @@
#!/bin/sh
#
# gwsetup: Starts the genealogy Server
# description: Starts and stops the genealogy adminstration Service
#
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")
TcpPort=$(/sbin/e-smith/db configuration getprop gwsetup TcpPort)
HD="/opt/geneweb/gw/gw"
BIN=$HD/gwsetup
LOGF="/var/log/gwsetup.log"
start() {
echo -n "Starting gwsetup Services (gwsetup):"
$BIN -daemon -gd $HD -bindir $HD -p $TcpPort -lang $GWLANG
/bin/su -s /bin/bash geneweb -c "$BIN -daemon -gd $HD -bindir $HD -p $TcpPort -lang $GWLANG >>$LOGF 2>>\&1"
}
cd $BD
case "$1" in
start)
$1
;;
*)
echo "*** Usage: gwsetup {start}"
exit 1
esac
exit 0