ad fi trong rc.local
This commit is contained in:
parent
1f5d71c0f8
commit
513d701444
|
@ -21,6 +21,8 @@ if [ ! -d /var/run/sshd ]; then
|
||||||
mkdir /var/run/sshd
|
mkdir /var/run/sshd
|
||||||
chmod 0755 /var/run/sshd
|
chmod 0755 /var/run/sshd
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
|
fi
|
||||||
|
|
||||||
time_begin=$(date)
|
time_begin=$(date)
|
||||||
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
||||||
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
||||||
|
|
|
@ -44,12 +44,13 @@ if [ ! -d /var/run/sshd ]; then
|
||||||
chmod 0755 /var/run/sshd
|
chmod 0755 /var/run/sshd
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
fi
|
fi
|
||||||
|
time_begin=$(date)
|
||||||
|
|
||||||
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
||||||
|
|
||||||
echo "nameserver 8.8.8.8" > /etc/resolv.conf
|
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
|
exit 0' > /etc/rc.local
|
||||||
#
|
#
|
||||||
|
|
|
@ -62,6 +62,8 @@ if [ ! -d /var/run/sshd ]; then
|
||||||
mkdir /var/run/sshd
|
mkdir /var/run/sshd
|
||||||
chmod 0755 /var/run/sshd
|
chmod 0755 /var/run/sshd
|
||||||
systemctl restart ssh
|
systemctl restart ssh
|
||||||
|
fi
|
||||||
|
|
||||||
time_begin=$(date)
|
time_begin=$(date)
|
||||||
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
echo "Begin rc.local. Time restart: $time_begin" >> /root/monitor/log/rc_local.log
|
||||||
#sudo /root/monitor/setup/datetime &
|
#sudo /root/monitor/setup/datetime &
|
||||||
|
|
Loading…
Reference in New Issue
Block a user