30 lines
522 B
Plaintext
30 lines
522 B
Plaintext
|
#!/sbin/runscript
|
||
|
# Copyright 1999-2013 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: $
|
||
|
|
||
|
description="daemon for TeamViewer"
|
||
|
|
||
|
PIDFILE="/var/run/teamviewerd.pid"
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting Teamviewer Daemon"
|
||
|
|
||
|
start-stop-daemon \
|
||
|
--start \
|
||
|
--pidfile "${PIDFILE}" \
|
||
|
--background \
|
||
|
--exec /opt/teamviewer-8/teamviewerd -- -d
|
||
|
}
|
||
|
|
||
|
stop() {
|
||
|
ebegin "Stopping Teamviewer Daemon"
|
||
|
|
||
|
# kill -TERM $(cat $pidfile)
|
||
|
|
||
|
start-stop-daemon \
|
||
|
--stop \
|
||
|
--pidfile "${PIDFILE}"
|
||
|
}
|
||
|
|