From be4d49dcf1a9749bddd74757ce11fb71866e5b29 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" 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 }