mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
35 lines
424 B
Bash
Executable File
35 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# /etc/rc.d/rsync: start/stop RSYNC Server
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
NAME="RSYNC Server"
|
|
PROG=/usr/bin/rsync
|
|
OPTS="--daemon"
|
|
|
|
case $1 in
|
|
start)
|
|
msg "Starting $NAME..."
|
|
start_daemon $PROG $OPTS
|
|
;;
|
|
stop)
|
|
msg "Stopping $NAME..."
|
|
stop_daemon $PROG
|
|
;;
|
|
restart)
|
|
$0 stop
|
|
sleep 1
|
|
$0 start
|
|
;;
|
|
status)
|
|
status_daemon $PROG
|
|
;;
|
|
*)
|
|
echo "usage: $0 [start|stop|restart|status]"
|
|
;;
|
|
esac
|
|
|
|
# End of file
|