1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
From: HÃ¥vard F. Aasen <havard.f.aasen@pfft.no>
Date: Sun, 7 Apr 2024 11:56:26 +0200
Subject: SysV init compatibility in systemd service files
We have supported this for a long time, so we should probably continue
doing it.
We might revisit this at a later time, if we want to drop support for
SysV init.
Forwarded: not-needed
---
init.d/sanlock.service.native | 3 ++-
init.d/wdmd.service | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/init.d/sanlock.service.native b/init.d/sanlock.service.native
index 6e66b35..2589449 100644
--- a/init.d/sanlock.service.native
+++ b/init.d/sanlock.service.native
@@ -6,7 +6,8 @@ Wants=wdmd.service
[Service]
Type=forking
-ExecStart=/usr/sbin/sanlock daemon
+EnvironmentFile=-/etc/default/sanlock
+ExecStart=/usr/sbin/sanlock daemon $sanlock_opts
SendSIGKILL=no
LimitNOFILE=2048
diff --git a/init.d/wdmd.service b/init.d/wdmd.service
index fe22988..7e90ff0 100644
--- a/init.d/wdmd.service
+++ b/init.d/wdmd.service
@@ -5,8 +5,9 @@ After=syslog.socket
[Service]
Type=forking
+EnvironmentFile=-/etc/default/wdmd
ExecStartPre=/lib/systemd/systemd-wdmd watchdog-check
-ExecStart=/usr/sbin/wdmd
+ExecStart=/usr/sbin/wdmd $wdmd_opts
SendSIGKILL=no
[Install]
|