mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 13:46:18 +00:00
c16def7032
* Switch: it builds * Switch: Use udev to finalize usb gadget to save from systemd looping service restart until cable connected. * Switch: Update kernel stuff again * Switch: Downgrade Alsa packages to version in 4.x tree * Joycond: Update Switch version * Switch: Minor fixes * LibreELEC: Fix a few broken files from upstream pull * Switch: Fix LibreELEC build. * Switch: Update bootloader stuff * L4T: FFMPEG: Add support for nvv4l2 decoder/encoder * FFMPEG: Add back encoder support for game recording in retroarch * FFMPEG: revert a few changes, and add support for vulkan.
44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
From: William Manley <will@williammanley.net>
|
|
Date: Thu, 9 Aug 2018 18:26:44 +0100
|
|
Subject: [PATCH] systemd support: Notify systemd on successful startup
|
|
|
|
This allows systemd to detect the case where we've failed to startup
|
|
due to a failure to parse our config files.
|
|
|
|
Origin: upstream, https://sourceforge.net/p/lirc/git/ci/b78df9b2950cf4
|
|
Applied-Upstream: 0.11.0
|
|
---
|
|
daemons/lircd.cpp | 5 +++++
|
|
systemd/lircd.service | 2 +-
|
|
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/daemons/lircd.cpp b/daemons/lircd.cpp
|
|
index ad8dde9..f559b62 100644
|
|
--- a/daemons/lircd.cpp
|
|
+++ b/daemons/lircd.cpp
|
|
@@ -2469,6 +2469,11 @@ int main(int argc, char** argv)
|
|
if (!nodaemon)
|
|
daemonize();
|
|
|
|
+#ifdef HAVE_SYSTEMD
|
|
+ /* Tell systemd that we started up correctly */
|
|
+ sd_notify(0, "READY=1");
|
|
+#endif
|
|
+
|
|
loop();
|
|
|
|
/* never reached */
|
|
diff --git a/systemd/lircd.service b/systemd/lircd.service
|
|
index 7f75805..6af049b 100644
|
|
--- a/systemd/lircd.service
|
|
+++ b/systemd/lircd.service
|
|
@@ -6,7 +6,7 @@ Wants=lircd-setup.service
|
|
After=network.target lircd-setup.service
|
|
|
|
[Service]
|
|
-Type=simple
|
|
+Type=notify
|
|
ExecStart=/usr/sbin/lircd --nodaemon
|
|
; User=lirc
|
|
; Group=lirc
|