summaryrefslogtreecommitdiff
path: root/net-misc/teamviewer/files/teamviewerd9.init
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-07-15 18:06:53 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-07-15 18:06:53 +0100
commit48ed061e72d23131832814eb7cfb4bc2387630f2 (patch)
tree56e9db8abc37f0900bc544b28a4cea34edb48ec3 /net-misc/teamviewer/files/teamviewerd9.init
parent398f183cfc641c99092e78f825aaf51bc43b39d7 (diff)
of course, I'm an idiot...fix teamviewer ebuild
Diffstat (limited to 'net-misc/teamviewer/files/teamviewerd9.init')
-rw-r--r--net-misc/teamviewer/files/teamviewerd9.init26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/teamviewer/files/teamviewerd9.init b/net-misc/teamviewer/files/teamviewerd9.init
new file mode 100644
index 00000000..80e881eb
--- /dev/null
+++ b/net-misc/teamviewer/files/teamviewerd9.init
@@ -0,0 +1,26 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="daemon for TeamViewer"
+
+PIDFILE="/var/run/teamviewerd.pid"
+
+start() {
+ ebegin "Starting Teamviewer Daemon"
+
+ start-stop-daemon \
+ --start \
+ --pidfile "${PIDFILE}" \
+ --background \
+ --exec /opt/teamviewer@TVV@/teamviewerd -- -d
+}
+
+stop() {
+ ebegin "Stopping Teamviewer Daemon"
+
+ start-stop-daemon \
+ --stop \
+ --pidfile "${PIDFILE}"
+}