summaryrefslogtreecommitdiff
blob: 6671bd754a57c5cb4b6977f07d9650eb9d1f3fdd (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
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/oops/files/oops.initd,v 1.1 2005/05/03 22:33:25 mrness Exp $

depend() {
	need net
}

start() {
	ebegin "Starting oops"
	/usr/sbin/oopsctl start &> /dev/null
	eend $?
}

status() {
	if service_started "${myservice}"; then
		/usr/sbin/oopsctl stat
	fi
	return 0
}

stop() {
	ebegin "Stopping oops"
	/usr/sbin/oopsctl stop &> /dev/null
	eend $?
}