summaryrefslogtreecommitdiff
path: root/sys-cluster/csync2/files/csync2.initd
blob: d718a49909215f2c0d02eccd26bf8e74722fb2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/sbin/openrc-run
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

PIDFILE=/var/run/csync2.pid
BINARY=/usr/sbin/csync2

start() {
   ebegin "Starting csync2"
   start-stop-daemon --start --pidfile "${PIDFILE}" -m -x ${BINARY} -b -- -ii
   eend $?
}

stop() {
   ebegin "Stopping csync2"
   start-stop-daemon --stop --pidfile "${PIDFILE}"
   eend $?
}

restart() {
   ebegin "Restarting csync2"
   svc_stop
   svc_start
   eend $?
}