diff options
Diffstat (limited to 'client/shared/etc/init/default.sh')
-rwxr-xr-x | client/shared/etc/init/default.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/shared/etc/init/default.sh b/client/shared/etc/init/default.sh index 229278ea..ab4052b4 100755 --- a/client/shared/etc/init/default.sh +++ b/client/shared/etc/init/default.sh @@ -27,7 +27,10 @@ if [ -f "$OPENGNSYS/images/ogagent-oglive_${VERSION}_all.deb" -a "$ogstatus" != -e "s,secret=.*,secret=$CLIENTSECRET," \ /usr/share/OGAgent/cfg/ogagent.cfg ogagent start - sleep 10 + while : ; do + sleep 60 + [ $(pgrep -fac OGAgent) -eq 0 ] && ogagent restart + done elif [ -x "$OPENGNSYS/bin/ogAdmClient" -a "$ogstatus" != "offline" ]; then # Ejecutar servicio cliente. $OPENGNSYS/bin/ogAdmClient -f $OPENGNSYS/etc/ogAdmClient.cfg -l $OGLOGFILE -d $LOGLEVEL |