From: ahesford <ahesford@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] Clightd: add runit service
Date: Thu, 09 Apr 2020 23:31:34 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20814@inbox.vuxu.org> (raw)
[-- 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
}
next reply other threads:[~2020-04-09 21:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 21:31 ahesford [this message]
2020-04-11 4:36 ` [PR PATCH] [Merged]: " pullmoll
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20814@inbox.vuxu.org \
--to=ahesford@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).