From c99561123e1cee73f5b661f0d9b18d05ae495f95 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Wed, 20 Sep 2023 15:08:31 +0800 Subject: [PATCH] websoft9 servicew --- systemd/send_credentials.sh | 11 ++++++++--- systemd/websoft9.service | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/systemd/send_credentials.sh b/systemd/send_credentials.sh index 274d078e..e20ee86b 100644 --- a/systemd/send_credentials.sh +++ b/systemd/send_credentials.sh @@ -6,9 +6,14 @@ trap "sleep 1; continue" ERR while true; do set +e - docker cp websoft9-git:/var/websoft9/credential websoft9-apphub:/websoft9/credentials - docker cp websoft9-deployment:/var/websoft9/credential websoft9-apphub:/websoft9/credentials - docker cp websoft9-proxy:/var/websoft9/credential websoft9-apphub:/websoft9/credentials + docker cp websoft9-git:/var/websoft9/credential /data/websoft9/credential_git + docker cp /data/websoft9/credential_git websoft9-apphub:/websoft9/credentials + + docker cp websoft9-deployment:/var/websoft9/credential /data/websoft9/credential_deployment + docker cp /data/websoft9/credential_deployment websoft9-apphub:/websoft9/credentials + + docker cp websoft9-proxy:/var/websoft9/credential /data/websoft9/credential_proxy + docker cp /data/websoft9/credential_proxy websoft9-apphub:/websoft9/credentials set -e sleep 3 done \ No newline at end of file diff --git a/systemd/websoft9.service b/systemd/websoft9.service index f6fdd42f..1faf274b 100644 --- a/systemd/websoft9.service +++ b/systemd/websoft9.service @@ -8,7 +8,7 @@ KillSignal=SIGQUIT WorkingDirectory=/data/websoft9/systemd ExecStart=-/bin/bash send_credentials.sh Restart=always -Type=notify +Type=simple NotifyAccess=all StandardError=syslog