#!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: opts="start stop reload restart dump check" depend() { use net } start() { local OPTIONS="-socket ${SOCKET}" ebegin "Starting unison" echo $OPTIONS start-stop-daemon --start --quiet --pidfile /var/run/unison.pid --background --exec /usr/bin/unison -- $OPTIONS eend $? } stop() { ebegin "Stopping unison" start-stop-daemon --stop --quiet --pidfile /var/run/unison.pid eend $? }