blob: 942dd9babe025fbbef58919739e4e9c94b7dd600 (
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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
}
start() {
ebegin "Starting WebCit"
start-stop-daemon --start --quiet --background \
--exec /usr/sbin/webcit -- $WEBCIT_OPTS
eend $? "Failed to start WebCit"
}
stop() {
ebegin "Stopping WebCit"
start-stop-daemon --stop --quiet \
--exec /usr/sbin/webcit
eend $? "Failed to stop WebCit"
}
restart() {
ebegin "Restarting WebCit"
svc_stop && sleep 3 && svc_start
eend $? "Failed to restart WebCit"
}
|