diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2020-10-15 10:26:30 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-17 12:34:29 +0100 |
| commit | ac1879d33bcdd1ca14a51e9b817f8d96272a502b (patch) | |
| tree | 142678028cfe6e3f6c713cfba69575e441729079 /meta/recipes-extended/watchdog | |
| parent | 458b7e9369dba71cda7623f906b4b2d3caeb9caa (diff) | |
| download | poky-ac1879d33bcdd1ca14a51e9b817f8d96272a502b.tar.gz | |
watchdog: use /run instead of /var/run in systemd service file
/var/run in deprecated by systemd, use /run instead, as suggested by systemd.
(From OE-Core rev: 85c92455eb6a133ae5ce8e70d46cac4fcd55ffe4)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/watchdog')
| -rw-r--r-- | meta/recipes-extended/watchdog/watchdog/0001-wd_keepalive.service-use-run-instead-of-var-run.patch | 30 | ||||
| -rw-r--r-- | meta/recipes-extended/watchdog/watchdog_5.16.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-extended/watchdog/watchdog/0001-wd_keepalive.service-use-run-instead-of-var-run.patch b/meta/recipes-extended/watchdog/watchdog/0001-wd_keepalive.service-use-run-instead-of-var-run.patch new file mode 100644 index 0000000000..5c5d2f4e44 --- /dev/null +++ b/meta/recipes-extended/watchdog/watchdog/0001-wd_keepalive.service-use-run-instead-of-var-run.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From b5cb6166dbfa57d1d94b19d4a098991a817f68f5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
| 3 | Date: Thu, 15 Oct 2020 10:02:17 +0800 | ||
| 4 | Subject: [PATCH] wd_keepalive.service: use /run instead of /var/run | ||
| 5 | |||
| 6 | /var/run is deprecated by systemd, use /run instead. | ||
| 7 | |||
| 8 | Upstream-Status: Pending | ||
| 9 | |||
| 10 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
| 11 | --- | ||
| 12 | debian/wd_keepalive.service | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/debian/wd_keepalive.service b/debian/wd_keepalive.service | ||
| 16 | index 7f8b1dc..0f2a153 100644 | ||
| 17 | --- a/debian/wd_keepalive.service | ||
| 18 | +++ b/debian/wd_keepalive.service | ||
| 19 | @@ -7,7 +7,7 @@ Type=forking | ||
| 20 | EnvironmentFile=/etc/default/watchdog | ||
| 21 | ExecStartPre=/bin/sh -c '[ -z "${watchdog_module}" ] || [ "${watchdog_module}" = "none" ] || /sbin/modprobe $watchdog_module' | ||
| 22 | ExecStart=/usr/sbin/wd_keepalive $watchdog_options | ||
| 23 | -PIDFile=/var/run/wd_keepalive.pid | ||
| 24 | +PIDFile=/run/wd_keepalive.pid | ||
| 25 | |||
| 26 | [Install] | ||
| 27 | WantedBy=multi-user.target | ||
| 28 | -- | ||
| 29 | 2.17.1 | ||
| 30 | |||
diff --git a/meta/recipes-extended/watchdog/watchdog_5.16.bb b/meta/recipes-extended/watchdog/watchdog_5.16.bb index 0199487e2e..1988952603 100644 --- a/meta/recipes-extended/watchdog/watchdog_5.16.bb +++ b/meta/recipes-extended/watchdog/watchdog_5.16.bb | |||
| @@ -12,6 +12,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/watchdog/watchdog-${PV}.tar.gz \ | |||
| 12 | file://0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch \ | 12 | file://0001-watchdog-remove-interdependencies-of-watchdog-and-wd.patch \ |
| 13 | file://watchdog.init \ | 13 | file://watchdog.init \ |
| 14 | file://wd_keepalive.init \ | 14 | file://wd_keepalive.init \ |
| 15 | file://0001-wd_keepalive.service-use-run-instead-of-var-run.patch \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" | 18 | SRC_URI[md5sum] = "1b4f51cabc64d1bee2fce7cdd626831f" |
