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

Last change on this file since e589e1d was 1602040, checked in by ramon <ramongomez@…>, 11 years ago

Versión 1.0.5, #616: Integrar código de la versión 1.0.5 en rama principal.

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

  • Property mode set to 100755
File size: 1.2 KB
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"
[1602040]26    # Indicar fichero de teclado de Qt para el idioma especificado (tipo "es.qmap").
27    [ -f /usr/local/etc/${LANG%_*}.qmap ] && export QWS_KEYBOARD="TTY:keymap=/usr/local/etc/${LANG%_*}.qmap"
28    # Ejecutar servicio cliente.
[d343849]29    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
[077dd7c5]30fi
31
[7af582e]32# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
33if [ "$boot" == "admin" ]; then
34    bash
35fi
[91aaf03]36
37
Note: See TracBrowser for help on using the repository browser.