summaryrefslogtreecommitdiff
path: root/network/teamviewer/rc.teamviewerd
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-02-17 23:42:49 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-02-22 22:29:39 -0600
commit4a831c7fd4326009b2e34ef7515e0208ad04341e (patch)
treeb71717c993c98cad900deabf70818bfe9ce5bf89 /network/teamviewer/rc.teamviewerd
parent158c9b7f67810a905ed0d2ae6bb0786b1630e49c (diff)
downloadslackbuilds-4a831c7fd4326009b2e34ef7515e0208ad04341e.tar.gz
network/teamviewer: Updated for version 8.0.17147.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/teamviewer/rc.teamviewerd')
-rw-r--r--network/teamviewer/rc.teamviewerd41
1 files changed, 41 insertions, 0 deletions
diff --git a/network/teamviewer/rc.teamviewerd b/network/teamviewer/rc.teamviewerd
new file mode 100644
index 0000000000..51be305c09
--- /dev/null
+++ b/network/teamviewer/rc.teamviewerd
@@ -0,0 +1,41 @@
+#!/bin/sh
+#
+# /etc/rc.d/rc.teamviewerd
+#
+# Start/stop/restart the TeamViewer Daemon
+#
+# To make TeamViewer Daemon start automatically at boot, make this
+# file executable: chmod 755 /etc/rc.d/rc.teamviewerd
+#
+
+teamviewerd_start() {
+ if [ -x /opt/teamviewer8/tv_bin/teamviewerd ]; then
+ echo "Starting TeamViewer Daemon"
+ /opt/teamviewer8/tv_bin/teamviewerd
+ fi
+}
+
+teamviewerd_stop() {
+ echo "Terminating TeamViewer Daemon"
+ killall teamviewerd
+}
+
+teamviewerd_restart() {
+ teamviewerd_stop
+ sleep 2
+ teamviewerd_start
+}
+
+case "$1" in
+'start')
+ teamviewerd_start
+ ;;
+'stop')
+ teamviewerd_stop
+ ;;
+'restart')
+ teamviewerd_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac