diff --git a/systemd/script/start_up.sh b/systemd/script/start_up.sh index f30741a6..9b4a7271 100644 --- a/systemd/script/start_up.sh +++ b/systemd/script/start_up.sh @@ -3,3 +3,4 @@ # 在这个脚本中,我们将运行两个脚本 /bin/bash send_credentials.sh /bin/bash set_hosts.sh +tail -f /dev/null \ No newline at end of file diff --git a/systemd/websoft9.service b/systemd/websoft9.service index a3e25fca..5889acf2 100644 --- a/systemd/websoft9.service +++ b/systemd/websoft9.service @@ -5,7 +5,7 @@ After=network.target docker [Service] WorkingDirectory=/opt/websoft9/systemd -ExecStart=/bin/bash /opt/websoft9/systemd/startup.sh +ExecStart=/bin/bash /opt/websoft9/systemd/start_up.sh Restart=always Type=simple NotifyAccess=all