diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-06-16 10:57:41 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-19 15:06:45 +0200 |
commit | f6e87d351413b9b2b3a09ffd54d71ebc4280222a (patch) | |
tree | c411b0f639f0c572bc96b09dc5aa16286384d782 /admin | |
parent | c070d3d734648dae98f719e1f27962b489b23e7a (diff) |
#981 Use new ogServer systemd unit file
This commit adapts installer, updater and init scripts to work with new
ogServer systemd unit file.
Diffstat (limited to 'admin')
-rwxr-xr-x | admin/Sources/Services/opengnsys.init | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init index ef5a5b8c..8917e2b5 100755 --- a/admin/Sources/Services/opengnsys.init +++ b/admin/Sources/Services/opengnsys.init @@ -22,10 +22,7 @@ CLIENTLOGDIR=$BASEDIR/log/clients # Servidor de OpenGnsys # SERVERNAME=ogAdmServer -SERVERDAEMON=$BASEDIR/sbin/$SERVERNAME SERVERCFG=$BASEDIR/etc/$SERVERNAME.cfg -SERVERLOG=$BASEDIR/log/$SERVERNAME.log -SERVERDAEMON_OPTIONS="-f $SERVERCFG -l $SERVERLOG" # # Servidor de Repositorio @@ -76,9 +73,7 @@ config() { case "$OSDISTRIB" in ubuntu|debian|linuxmint) INITFUNCTIONS=/lib/lsb/init-functions - DAEMONSTART="start-stop-daemon --start --quiet --background --exec" EXTRAOPTS="--" - DAEMONSTOP="start-stop-daemon --stop --quiet --oknodo --name" ACTIONMSG="log_daemon_msg" SUCCESSMSG="log_end_msg 0" FAILMSG="log_end_msg 1" @@ -90,9 +85,7 @@ config() { ;; centos|fedora) INITFUNCTIONS=/etc/init.d/functions - DAEMONSTART="daemon" ENDOPTS="&" - DAEMONSTOP="killproc" ACTIONMSG="echo -n" SUCCESSMSG="eval ( success; echo )" FAILMSG="eval ( failure; echo )" @@ -133,9 +126,6 @@ arranca_demonios() { fi # Arrancar los servicios indicados. if [ $RUN_OGADMSERVER = "yes" ]; then - $ACTIONMSG "Iniciando demonio: $SERVERNAME" - $DAEMONSTART $SERVERDAEMON $EXTRAOPTS $SERVERDAEMON_OPTIONS $ENDOPTS - [ $? = 0 ] && $SUCCESSMSG || $FAILMSG # Para SetBootmode desde el cliente $ACTIONMSG "Iniciando demonio: $SERVERAUXNAME" # faucet $SERVERAUXPORT --daemon --in bash -c "$SERVERAUXDAEMON" # NUEVO @@ -175,9 +165,6 @@ para_demonios() { $ACTIONMSG "Parando demonio: $REPOAUXNAME" pkill faucet [ $? -le 1 ] && $SUCCESSMSG || $FAILMSG - $ACTIONMSG "Parando demonio: $SERVERNAME" - $DAEMONSTOP $SERVERNAME - [ $? = 0 ] && $SUCCESSMSG || $FAILMSG } config |