blob: b1eae998553e9eb600966f4ed00cabe2d2500dd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Id$
depend() {
need net
}
start() {
ebegin "Starting HTTP Replicator"
start-stop-daemon --start --pidfile /var/run/http-replicator.pid \
--name http-replicator --exec /usr/bin/http-replicator -- --static \
--flat --daemon $LOG_FILE $DAEMON_OPTS --pid /var/run/http-replicator.pid
eend $? "Failed to start HTTP Replicator"
}
stop() {
ebegin "Stopping HTTP Replicator"
start-stop-daemon --stop --pidfile /var/run/http-replicator.pid --name http-replicator --signal 2
eend $? "Failed to stop HTTP Replicator"
}
|