blob: 7fac76c7d84f8c25992d34151dcae44abd8bde7b (
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
27
28
29
|
#!/sbin/runscript
depend() {
need net logger
}
checkconfig() {
if [ "x$CACHE" == "x" ]; then
eerror "Please set CACHE in /etc/conf.d/intersync"
return 1
fi
return 0
}
start() {
checkconfig || return $?
ebegin "Starting intersync"
start-stop-daemon --start --pidfile /var/run/intersync.pid \
--startas /usr/bin/intersync -- $CLIENT_OPTS $CACHE
eend $? "Failed to start intersync"
}
stop() {
ebegin "Stopping intersync"
start-stop-daemon --stop --quiet --pidfile /var/run/intersync.pid
eend $? "Failed to stop intersync"
}
|