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
Rev | Line | |
---|
[914d834] | 1 | #!/bin/bash |
---|
[c39fac3] | 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] | 6 | OPENGNSYS=${OPENGNSYS:-/opt/opengnsys} |
---|
[c39fac3] | 7 | OGLOGFILE=${OGLOGFILE:-$OPENGNSYS/log/$(ogGetIpAdderss).log} |
---|
[7af582e] | 8 | if ! touch $OGLOGFILE 2>/dev/null; then |
---|
| 9 | OGLOGFILE=/var/log/opengnsys.log |
---|
| 10 | fi |
---|
[d343849] | 11 | LOGLEVEL=5 |
---|
[914d834] | 12 | |
---|
[3d00dd9b] | 13 | # Matando plymount para inicir browser o shell |
---|
[1ab18778] | 14 | pkill -9 plymouthd |
---|
| 15 | |
---|
[3d00dd9b] | 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). |
---|
[077dd7c5] | 23 | if [ -x "$OPENGNSYS/bin/ogAdmClient" ]; then |
---|
[c39fac3] | 24 | echo "${MSG_LAUNCHCLIENT:-.}" |
---|
| 25 | [ $ogactiveadmin == "true" ] && boot="admin" |
---|
[d343849] | 26 | $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL |
---|
[077dd7c5] | 27 | fi |
---|
| 28 | |
---|
[7af582e] | 29 | # Si fallo en cliente y modo "admin", cargar shell; si no, salir. |
---|
| 30 | if [ "$boot" == "admin" ]; then |
---|
| 31 | bash |
---|
| 32 | fi |
---|
[c39fac3] | 33 | |
---|
| 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.