918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
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). |
---|
6 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
7 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log} |
---|
8 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
9 | OGLOGFILE=/var/log/opengnsys.log |
---|
10 | fi |
---|
11 | LOGLEVEL=5 |
---|
12 | |
---|
13 | # Matando plymount para inicir browser o shell |
---|
14 | pkill -9 plymouthd |
---|
15 | |
---|
16 | # Arranque de OpenGnSys Client daemon (web services). |
---|
17 | if [ -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 |
---|
20 | fi |
---|
21 | |
---|
22 | # Arranque de OpenGnSys Client daemon (socket). |
---|
23 | if [ -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 |
---|
27 | fi |
---|
28 | |
---|
29 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
30 | if [ "$boot" == "admin" ]; then |
---|
31 | bash |
---|
32 | fi |
---|
33 | |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.