summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-laptop/tuxedo-control-center-bin/files/tccd.initd')
-rw-r--r--app-laptop/tuxedo-control-center-bin/files/tccd.initd25
1 files changed, 25 insertions, 0 deletions
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 $?
+}