Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Clightd: add runit service
@ 2020-04-09 21:31 ahesford
  2020-04-11  4:36 ` [PR PATCH] [Merged]: " pullmoll
  0 siblings, 1 reply; 2+ messages in thread
From: ahesford @ 2020-04-09 21:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

There is a new pull request by ahesford against master on the void-packages repository

https://github.com/ahesford/void-packages clight
https://github.com/void-linux/void-packages/pull/20814

Clightd: add runit service
This PR adds a runit service for the Clightd backlight management daemon. In the unmodified config, `dbus` will automatically start `clightd` on demand, but, once started, the daemon will never die. (When `dbus` dies, the Clightd daemon doesn't die with it, it just repeatedly complains about a missing bus.) By starting the daemon from runit, its lifetime can be managed with runit.

A patch file from https://github.com/void-linux/void-packages/pull/20814.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-clight-20814.patch --]
[-- Type: text/x-diff, Size: 1649 bytes --]

From be4d49dcf1a9749bddd74757ce11fb71866e5b29 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ahesford@gleason.com>
Date: Thu, 9 Apr 2020 17:27:52 -0400
Subject: [PATCH] Clightd: add runit service

---
 srcpkgs/Clightd/files/Clightd/log/run | 3 +++
 srcpkgs/Clightd/files/Clightd/run     | 4 ++++
 srcpkgs/Clightd/template              | 3 ++-
 3 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/Clightd/files/Clightd/log/run
 create mode 100644 srcpkgs/Clightd/files/Clightd/run

diff --git a/srcpkgs/Clightd/files/Clightd/log/run b/srcpkgs/Clightd/files/Clightd/log/run
new file mode 100644
index 00000000000..bfcfbef2823
--- /dev/null
+++ b/srcpkgs/Clightd/files/Clightd/log/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/vlogger -t Clightd
diff --git a/srcpkgs/Clightd/files/Clightd/run b/srcpkgs/Clightd/files/Clightd/run
new file mode 100644
index 00000000000..979d7e955cc
--- /dev/null
+++ b/srcpkgs/Clightd/files/Clightd/run
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+sv check dbus >/dev/null || exit 1
+exec /usr/lib/clightd/clightd 2>&1
diff --git a/srcpkgs/Clightd/template b/srcpkgs/Clightd/template
index b9698f4e6aa..1ab5c601888 100644
--- a/srcpkgs/Clightd/template
+++ b/srcpkgs/Clightd/template
@@ -1,7 +1,7 @@
 # Template file for 'Clightd'
 pkgname=Clightd
 version=4.0
-revision=2
+revision=3
 build_style=cmake
 cmake_builddir=build
 configure_args="-DENABLE_DDC=1 -DENABLE_GAMMA=1 -DENABLE_DPMS=1 -DENABLE_SCREEN=1"
@@ -17,4 +17,5 @@ checksum=b3b2c83d4deb3ebc75ee965d6640009794eec61160a20772932643a9864fb7ba
 
 post_install() {
 	vinstall Scripts/i2c_clightd.conf 644 /usr/lib/modules-load.d/
+	vsv Clightd
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Merged]: Clightd: add runit service
  2020-04-09 21:31 [PR PATCH] Clightd: add runit service ahesford
@ 2020-04-11  4:36 ` pullmoll
  0 siblings, 0 replies; 2+ messages in thread
From: pullmoll @ 2020-04-11  4:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

There's a merged pull request on the void-packages repository

Clightd: add runit service
https://github.com/void-linux/void-packages/pull/20814

Description:
This PR adds a runit service for the Clightd backlight management daemon. In the unmodified config, `dbus` will automatically start `clightd` on demand, but, once started, the daemon will never die. (When `dbus` dies, the Clightd daemon doesn't die with it, it just repeatedly complains about a missing bus.) By starting the daemon from runit, its lifetime can be managed with runit.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-11  4:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 21:31 [PR PATCH] Clightd: add runit service ahesford
2020-04-11  4:36 ` [PR PATCH] [Merged]: " pullmoll

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).