saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
29
init.d/teamviewer-8
Executable file
29
init.d/teamviewer-8
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user