blob: 6509dbad12cbb5efaae2162feb8e1b2b195d95d2 (
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
26
|
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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 $?
}
|