source: client/shared/etc/init/default.sh @ a23fb1b

Last change on this file since a23fb1b was 91aaf03, checked in by ramon <ramongomez@…>, 13 years ago

Versión 1.0.3, #499: Integrar versión 1.0.3 en rama principal.

git-svn-id: https://opengnsys.es/svn/trunk@2695 a21b9725-9963-47de-94b9-378ad31fedc9

  • Property mode set to 100755
File size: 1012 bytes
RevLine 
[914d834]1#!/bin/bash
[91aaf03]2# Proceso general de arranque de OpenGnSys Client.
[914d834]3
[383fe4b]4
[7af582e]5# Fichero de registro de incidencias (en el servidor; si no, en local).
[077dd7c5]6OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
[91aaf03]7OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log}
[7af582e]8if ! touch $OGLOGFILE 2>/dev/null; then
9    OGLOGFILE=/var/log/opengnsys.log
10fi
[d343849]11LOGLEVEL=5
[914d834]12
[71643c0]13# Matando plymount para inicir browser o shell
14pkill -9 plymouthd
15
16# Arranque de OpenGnSys Client daemon (web services).
17if [ -x $OPENGNSYS/job_executer/init.d/job_executer ]; then
18    echo "Running Opengnsys client daemon (web services)"
19    $OPENGNSYS/job_executer/init.d/job_executer restart
20fi
21
22# Arranque de OpenGnSys Client daemon (socket).
[077dd7c5]23if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then
[91aaf03]24    echo "${MSG_LAUNCHCLIENT:-.}"
25    [ $ogactiveadmin == "true" ] && boot="admin"
[d343849]26    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
[077dd7c5]27fi
28
[7af582e]29# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
30if [ "$boot" == "admin" ]; then
31    bash
32fi
[91aaf03]33
34
Note: See TracBrowser for help on using the repository browser.