Hi Lobotron,
NeoRouter client service (nrservice) should have reconnected to the NeoRouter server automatically if it's not crashed or gets killed for some reasons. So please check if the service is running (ps aux|grep nrservice). If you can collect log file of the nrservice, we'd like to help you figure out the issue.
One the other hand, I'd like to post scripts here, which can be used for monitoring the specified process and restart it. Hope it helps.
1. To monitor and automatically restart NeoRouter service on Linux:
Code:
It will check the nrservice process once a minute, if it's down, it will restart it.
a.sudo vi /usr/local/ZebraNetworkSystems/NeoRouter/CheckService.sh
b.put the following lines in the script
#!/bin/sh
SERVICE='nrservice'
LOGFILE='/dev/null'
if [ "$( ps ax | grep -v grep | grep $SERVICE)" != "" ]; then
echo "$SERVICE is running" >> $LOGFILE
date >> $LOGFILE
else
echo "$SERVICE is down" >> $LOGFILE
date >> $LOGFILE
/sbin/start-stop-daemon --start --background -m --pidfile /var/run/nrservice.pid --exec /usr/bin/nrservice >> $LOGFILE
fi
c.save it and make it executable
sudo chmod 755 /usr/local/ZebraNetworkSystems/NeoRouter/CheckService.sh
d.sudo crontab -e
e.add line
*/1 * * * * /usr/local/ZebraNetworkSystems/NeoRouter/CheckService.sh
f.restart cron
sudo service cron stop
sudo service cron start
2. To monitor and automatically restart NRServer if it's down on linux
Code:
It will check the nrserver process once a minute, if it's down, it will restart it.
a.sudo vi /usr/local/ZebraNetworkSystems/NeoRouter/CheckServer.sh
b.put the following lines in the script
#!/bin/sh
SERVICE='nrserver'
LOGFILE='/dev/null'
if [ "$( ps ax | grep -v grep | grep $SERVICE)" != "" ]; then
echo "$SERVICE is running" >> $LOGFILE
date >> /tmp/nrserver.log
else
echo "$SERVICE is down" >> $LOGFILE
date >> /tmp/nrserver.log
/sbin/start-stop-daemon --start --background -m --pidfile /var/run/nrserver.pid --exec /usr/bin/nrserver >> $LOGFILE
fi
c.save it and make it executable
sudo chmod 755 /usr/local/ZebraNetworkSystems/NeoRouter/CheckServer.sh
d.sudo crontab -e
e.add line
*/1 * * * * /usr/local/ZebraNetworkSystems/NeoRouter/CheckServer.sh
f.restart cron
sudo service cron stop
sudo service cron start