netmaker/scripts/daemon.sh

12 lines
393 B
Bash
Raw Normal View History

# create a logs file
sudo touch /etc/netclient/netclient.logs
echo "[netclient] created logs file in /etc/netclient/netclient.logs"
echo "[netclient] Starting netclient checkins"
# loop and call checkin -n all
2021-09-27 21:57:12 +08:00
while [ 1 ]; do
# add logs to netclient.logs
sudo /etc/netclient/netclient checkin -n all >> /etc/netclient/netclient.logs 2&1>
2021-09-27 21:57:12 +08:00
sleep 15
done &
echo "[netclient] exiting"