ad fi trong rc.local

This commit is contained in:
HaiMD 2021-06-07 11:13:24 +07:00
parent 1f5d71c0f8
commit 513d701444
3 changed files with 6 additions and 1 deletions

View File

@ -21,6 +21,8 @@ if [ ! -d /var/run/sshd ]; then
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
systemctl restart ssh
fi
time_begin=$(date)
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
echo "nameserver 8.8.8.8" > /etc/resolv.conf

View File

@ -44,12 +44,13 @@ if [ ! -d /var/run/sshd ]; then
chmod 0755 /var/run/sshd
systemctl restart ssh
fi
time_begin=$(date)
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
echo "nameserver 8.8.8.8" > /etc/resolv.conf
tmux new -d -s server_js 'node /root/BiFace_Server_Config_API/server.js'
# tmux new -d -s server_js 'node /root/BiFace_Server_Config_API/server.js'
exit 0' > /etc/rc.local
#

View File

@ -62,6 +62,8 @@ if [ ! -d /var/run/sshd ]; then
mkdir /var/run/sshd
chmod 0755 /var/run/sshd
systemctl restart ssh
fi
time_begin=$(date)
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
#sudo /root/monitor/setup/datetime &