SOURCES: synergy-client.conf (NEW), synergy-server.conf (NEW), syn...
arekm
arekm at pld-linux.org
Tue Apr 1 10:58:04 CEST 2008
Author: arekm Date: Tue Apr 1 08:58:04 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- simple and not very smart scripts
---- Files affected:
SOURCES:
synergy-client.conf (NONE -> 1.1) (NEW), synergy-server.conf (NONE -> 1.1) (NEW), synergy-server-layout.conf (NONE -> 1.1) (NEW), synergy-client.init (NONE -> 1.1) (NEW), synergy-server.init (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/synergy-client.conf
diff -u /dev/null SOURCES/synergy-client.conf:1.1
--- /dev/null Tue Apr 1 10:58:04 2008
+++ SOURCES/synergy-client.conf Tue Apr 1 10:57:59 2008
@@ -0,0 +1,5 @@
+# short name for this client (defaults to hostname -s setting); used in layout.conf on the server
+# SYNERGYC_NAME="sclient"
+#
+# connect to server:port
+# SYNERGY_SERVER="192.168.1.1"
================================================================
Index: SOURCES/synergy-server.conf
diff -u /dev/null SOURCES/synergy-server.conf:1.1
--- /dev/null Tue Apr 1 10:58:04 2008
+++ SOURCES/synergy-server.conf Tue Apr 1 10:57:59 2008
@@ -0,0 +1,5 @@
+# short name for this server (defaults to hostname -s setting); used in layout.conf
+# SYNERGYS_NAME="sserver"
+
+# Listen address:port (defaults to all interfaces; port 24800)
+# SYNERGYS_ADDRESS=
================================================================
Index: SOURCES/synergy-server-layout.conf
diff -u /dev/null SOURCES/synergy-server-layout.conf:1.1
--- /dev/null Tue Apr 1 10:58:04 2008
+++ SOURCES/synergy-server-layout.conf Tue Apr 1 10:57:59 2008
@@ -0,0 +1,11 @@
+section: screens
+ sserver:
+ sclient:
+end
+section: links
+ sserver:
+ right = sclient
+ sclient:
+ left = sserver
+end
+
================================================================
Index: SOURCES/synergy-client.init
diff -u /dev/null SOURCES/synergy-client.init:1.1
--- /dev/null Tue Apr 1 10:58:04 2008
+++ SOURCES/synergy-client.init Tue Apr 1 10:57:59 2008
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/synergy/client.conf ] && . /etc/synergy/client.conf
+
+# Check that networking is up.
+if ! is_yes "${NETWORKING}"; then
+ echo "$0: Networking disabled" >&2
+ exit 0
+fi
+
+if [ -z "$SYNERGY_SERVER" ]; then
+ echo "$0: SYNERGY_SERVER not set. Please update /etc/synergy/client.conf"
+fi
+
+SYNERGYC_NAME=${SYNERGYC_NAME:-hostname -s}
+
+killall -TERM synergyc 2> /dev/null
+usleep 300
+killall -9 synergyc 2> /dev/null
+
+/usr/bin/synergyc --daemon --restart -n ${SYNERGYC_NAME} ${SYNERGY_SERVER}
================================================================
Index: SOURCES/synergy-server.init
diff -u /dev/null SOURCES/synergy-server.init:1.1
--- /dev/null Tue Apr 1 10:58:04 2008
+++ SOURCES/synergy-server.init Tue Apr 1 10:57:59 2008
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Source function library
+. /etc/rc.d/init.d/functions
+
+# Get network config
+. /etc/sysconfig/network
+
+# Get service config
+[ -f /etc/synergy/server.conf ] && . /etc/synergy/server.conf
+
+# Check that networking is up.
+if ! is_yes "${NETWORKING}"; then
+ echo "$0: Networking disabled" >&2
+ exit 0
+fi
+
+SYNERGYS_NAME=${SYNERGYS_NAME:-hostname -s}
+
+[ -n "$SYNERGYS_ADDRESS" ] && SYNERGYS_OPTS="$SYNERGYS_OPTS --address $SYNERGYS_ADDRESS"
+
+killall -TERM synergys 2> /dev/null
+usleep 300
+killall -9 synergys 2> /dev/null
+
+/usr/bin/synergys --daemon --restart -n ${SYNERGYS_NAME} --config /etc/synergy/layout.conf ${SYNERGYS_OPTS}
================================================================
More information about the pld-cvs-commit
mailing list