public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-laptop/tuxedo-control-center-bin/files/, ...
@ 2021-11-27 21:23 Marc Schiffbauer
  0 siblings, 0 replies; only message in thread
From: Marc Schiffbauer @ 2021-11-27 21:23 UTC (permalink / raw
  To: gentoo-commits

commit:     703ca218b4f1e0b9e22bf12c4cd8f41fab60508c
Author:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 27 21:21:38 2021 +0000
Commit:     Marc Schiffbauer <mschiff <AT> gentoo <DOT> org>
CommitDate: Sat Nov 27 21:23:05 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=703ca218

app-laptop/tuxedo-control-center-bin: added openrc script

Closes: https://bugs.gentoo.org/747802
Signed-off-by: Marc Schiffbauer <mschiff <AT> gentoo.org>

 .../tuxedo-control-center-bin/files/tccd.initd     | 25 ++++++++++++++++++++++
 ...d => tuxedo-control-center-bin-1.1.0-r1.ebuild} |  2 ++
 2 files changed, 27 insertions(+)

diff --git a/app-laptop/tuxedo-control-center-bin/files/tccd.initd b/app-laptop/tuxedo-control-center-bin/files/tccd.initd
new file mode 100644
index 000000000000..ced84c8baa60
--- /dev/null
+++ b/app-laptop/tuxedo-control-center-bin/files/tccd.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+name=$RC_SVCNAME
+description="TUXEDO Control Center Service"
+supervisor="supervise-daemon"
+command="/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd"
+command_args="--start"
+
+depend() {
+	need localmount
+}
+
+start(){
+	ebegin "Starting $RC_SVCNAME"
+	start-stop-daemon -b --start /opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd -- --start
+	eend $?
+}
+
+stop() {
+	ebegin "Stopping $RC_SVCNAME"
+	/opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/service/tccd --stop
+	eend $?
+}

diff --git a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
similarity index 98%
rename from app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild
rename to app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
index 26e89d4b651e..3cc707212c10 100644
--- a/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0.ebuild
+++ b/app-laptop/tuxedo-control-center-bin/tuxedo-control-center-bin-1.1.0-r1.ebuild
@@ -47,6 +47,8 @@ src_install() {
 
 	systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd.service
 	systemd_dounit opt/tuxedo-control-center/resources/dist/tuxedo-control-center/data/dist-data/tccd-sleep.service
+
+	doinitd "${FILES}/tccd.initd"
 }
 
 pkg_config() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-27 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-27 21:23 [gentoo-commits] repo/gentoo:master commit in: app-laptop/tuxedo-control-center-bin/files/, Marc Schiffbauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox