blob: 8d687c38c5330763a7f2552b82885d1a0c025bcc (
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
}
svc_start() {
ebegin "Starting WebCit"
start-stop-daemon --start --quiet --background \
--exec /usr/sbin/webcit -- $WEBCIT_OPTS
eend $? "Failed to start WebCit"
}
svc_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"
}
|