summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd-timesyncd-wrap.go1
-rw-r--r--systemd-timesyncd.service.d-wait.conf2
2 files changed, 2 insertions, 1 deletions
diff --git a/systemd-timesyncd-wrap.go b/systemd-timesyncd-wrap.go
index 76914a4..9bf5782 100644
--- a/systemd-timesyncd-wrap.go
+++ b/systemd-timesyncd-wrap.go
@@ -56,6 +56,7 @@ func main() {
os.Chown(fake_sockname, uid, gid)
os.Setenv("NOTIFY_SOCKET", fake_sockname)
+ os.Unsetenv("WATCHDOG_PID")
proc, err := os.StartProcess(os.Args[1], os.Args[1:], &os.ProcAttr{Files: []*os.File{os.Stdin, os.Stdout, os.Stderr}})
if err != nil {
fmt.Fprintln(os.Stderr, err)
diff --git a/systemd-timesyncd.service.d-wait.conf b/systemd-timesyncd.service.d-wait.conf
index 2775888..b66b18b 100644
--- a/systemd-timesyncd.service.d-wait.conf
+++ b/systemd-timesyncd.service.d-wait.conf
@@ -1,5 +1,5 @@
[Unit]
-Wants=systemd-timesyncd-wait.socket
+Wants=systemd-timesyncd-wait.socket systemd-timesyncd-wait.service
After=systemd-timesyncd-wait.socket
[Service]