From 3412643b6e9f6978f2662b88208c5d8a8357455d Mon Sep 17 00:00:00 2001 From: wweir Date: Mon, 16 May 2022 07:28:29 +0800 Subject: [PATCH] feat: add restart policy --- .github/sower.service | 2 ++ .github/sowerd.service | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/sower.service b/.github/sower.service index c31f99a..e6491dd 100644 --- a/.github/sower.service +++ b/.github/sower.service @@ -6,6 +6,8 @@ After=network.target Type=simple WorkingDirectory=/etc/sower ExecStart=/usr/local/bin/sower -f /etc/sower/sower.hcl +Restart=on-failure +RestartSec=1min [Install] WantedBy=multi-user.target \ No newline at end of file diff --git a/.github/sowerd.service b/.github/sowerd.service index 7a7bdc5..fee4a61 100644 --- a/.github/sowerd.service +++ b/.github/sowerd.service @@ -7,6 +7,8 @@ Type=simple ExecStart=/usr/local/bin/sowerd Environment="FAKE_SITE=127.0.0.1:8080" Environment="PASSWORD=I_am_Passw0rd" +Restart=on-failure +RestartSec=1min [Install] WantedBy=multi-user.target \ No newline at end of file