summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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 000000000000..244a604ebab0
--- /dev/null
+++ b/net-misc/teamviewer/files/teamviewerd9.init
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# 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}"
+}