summaryrefslogtreecommitdiff
path: root/init.d/local
blob: 4e4c265c311c398850a2d3d371f51ae8657e1fbb (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
30
31
32
33
34
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
	after *
}

start() {
	ebegin "Starting local"

	# Add any misc programs that should be started
	# to /etc/conf.d/local.start
	if [ -e /etc/conf.d/local.start ] ; then
		. /etc/conf.d/local.start
	fi

	eend $? "Failed to start local"
}

stop() {
	ebegin "Stopping local"

	# Add any misc programs that should be stopped
	# to /etc/conf.d/local.stop
	if [ -e /etc/conf.d/local.stop ] ; then
		. /etc/conf.d/local.stop
	fi

	eend $? $"Failed to stop local"
}


# vim:ts=4