0001-Change-PIDFile-path-from-var-run-to-run.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From 25f4f8793730ef3d170f1f2bd729a82fd61a4784 Mon Sep 17 00:00:00 2001
  2. From: puneetse <22071208+puneetse@users.noreply.github.com>
  3. Date: Wed, 11 Mar 2020 09:36:51 -0700
  4. Subject: [PATCH] Change PIDFile path from /var/run to /run
  5. /var/run is considered a legacy directory by systemd 239+ and having it in unit files causes a warning to be emitted to the journal.
  6. Upstream-Status: Backport [25f4f8793730ef3d170f1f2bd729a82fd61a4784]
  7. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
  8. ---
  9. prog/init/fancontrol.service | 2 +-
  10. prog/init/sensord.service | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/prog/init/fancontrol.service b/prog/init/fancontrol.service
  13. index 3ac1ed02..43293141 100644
  14. --- a/prog/init/fancontrol.service
  15. +++ b/prog/init/fancontrol.service
  16. @@ -5,7 +5,7 @@ After=lm_sensors.service
  17. [Service]
  18. Type=simple
  19. -PIDFile=/var/run/fancontrol.pid
  20. +PIDFile=/run/fancontrol.pid
  21. ExecStart=/usr/sbin/fancontrol
  22. [Install]
  23. diff --git a/prog/init/sensord.service b/prog/init/sensord.service
  24. index 2448beeb..af2f0ae9 100644
  25. --- a/prog/init/sensord.service
  26. +++ b/prog/init/sensord.service
  27. @@ -5,7 +5,7 @@ After=lm_sensors.service
  28. [Service]
  29. EnvironmentFile=/etc/sysconfig/sensord
  30. Type=forking
  31. -PIDFile=/var/run/sensord.pid
  32. +PIDFile=/run/sensord.pid
  33. ExecStart=/usr/sbin/sensord -i $INTERVAL -l $LOG_INTERVAL -f daemon
  34. [Install]
  35. --
  36. 2.17.1