mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-06 03:46:29 +08:00
added example files and a README.
This commit is contained in:
43
examples/synergyd.linux.init
Executable file
43
examples/synergyd.linux.init
Executable 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
|
||||
Reference in New Issue
Block a user