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
Line 
1#!/bin/bash
2# Proceso general de arranque de OpenGnSys Client.
3
4
5# Fichero de registro de incidencias (en el servidor; si no, en local).
6OPENGNSYS=${OPENGNSYS:-/opt/opengnsys}
7OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log}
8if ! touch $OGLOGFILE 2>/dev/null; then
9    OGLOGFILE=/var/log/opengnsys.log
10fi
11LOGLEVEL=5
12
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).
23if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then
24    echo "${MSG_LAUNCHCLIENT:-.}"
25    [ $ogactiveadmin == "true" ] && boot="admin"
26    $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL
27fi
28
29# Si fallo en cliente y modo "admin", cargar shell; si no, salir.
30if [ "$boot" == "admin" ]; then
31    bash
32fi
33
34
Note: See TracBrowser for help on using the repository browser.