summaryrefslogtreecommitdiffstats
path: root/gentoo/files/bcfg2-client
blob: 1d903c7373517340cc8025bd2cbb66971aea90dc (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
#!/sbin/runscript
#
# bcfg - bcfg configuration client
#
# 

depend () {
	need net
}

start () {
	ebegin "Starting bcfg"
	if [ -e /etc/bcfg.dont_run ]; then
		einfo "bcfg does not need to run"
		eend 0
	else
		start-stop-daemon --start --quiet \
			--startas /usr/sbin/bcfg.py -- -q -s
		eend $? "Failed to start bcfg"
	fi
}
stop () {
	ebegin "Stopping bcfg"
	/bin/true
	eend 0
}