initial commit of file from CVS for smeserver-geneweb on Sat Sep 7 19:54:18 AEST 2024
This commit is contained in:
14
root/usr/lib/systemd/system/geneweb.service
Normal file
14
root/usr/lib/systemd/system/geneweb.service
Normal 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
|
14
root/usr/lib/systemd/system/gwsetup.service
Normal file
14
root/usr/lib/systemd/system/gwsetup.service
Normal 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
|
31
root/usr/lib/systemd/systemd-geneweb
Normal file
31
root/usr/lib/systemd/systemd-geneweb
Normal 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
|
32
root/usr/lib/systemd/systemd-gwsetup
Normal file
32
root/usr/lib/systemd/systemd-gwsetup
Normal 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
|
Reference in New Issue
Block a user