added example files and a README.

This commit is contained in:
crs
2002-06-10 11:00:55 +00:00
parent 172fc7e5b3
commit afc8d6a9e7
4 changed files with 549 additions and 0 deletions

37
examples/synergy.conf Normal file
View File

@@ -0,0 +1,37 @@
# sample synergy configuration file
#
# comments begin with the # character and continue to the end of
# line. comments may appear anywhere the syntax permits.
section: screens
# three hosts named: moe, larry, and curly
moe:
larry:
curly:
end
section: links
# larry is to the right of moe and curly is above moe
moe:
right = larry
up = curly
# moe is to the left of larry and curly is above larry.
# note that curly is above both moe and larry and moe
# and larry have a symmetric connection (they're in
# opposite directions of each other).
larry:
left = moe
up = curly
# larry is below curly. if you move up from moe and then
# down, you'll end up on larry.
curly:
down = larry
end
section: aliases
# curly is also known as shemp
curly:
shemp
end

43
examples/synergy.linux.init Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/sh
#
# Startup script for synergy client
#
# chkconfig: 5 98 02
# description: Starts/stops synergy client when X server is started/stopped
#
# processname: synergy
# startup command line arguments
ARGS=192.168.1.3
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting synergy client: "
daemon synergy $ARGS
RETVAL=$?
echo
;;
stop)
echo -n "Stopping synergy client: "
killproc synergy
RETVAL=$?
echo
;;
status)
status synergy
RETVAL=$?
;;
restart)
$0 stop
$0 start
RETVAL=$?
;;
*)
echo "Usage: synergy {start|stop|status|restart}"
exit 1
esac
exit $RETVAL

43
examples/synergyd.linux.init Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/sh
#
# Startup script for synergy server
#
# chkconfig: 5 98 02
# description: Starts/stops synergy server when X server is started/stopped
#
# processname: synergyd
# startup command line arguments
ARGS=
# Source function library.
. /etc/rc.d/init.d/functions
case "$1" in
start)
echo -n "Starting synergy server: "
daemon synergyd $ARGS
RETVAL=$?
echo
;;
stop)
echo -n "Stopping synergy server: "
killproc synergyd
RETVAL=$?
echo
;;
status)
status synergyd
RETVAL=$?
;;
restart)
$0 stop
$0 start
RETVAL=$?
;;
*)
echo "Usage: synergyd {start|stop|status|restart}"
exit 1
esac
exit $RETVAL