aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloudi/cloudi.initd
blob: 77fd99b513722bc663953384449609bb48d5266a (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
35
#!/sbin/openrc-run

# Justification for the script use here exists in the port's APKBUILD file.

name=cloudi
command=/usr/sbin/cloudi
command_args=""
command_background="false"

description="CloudI is an open-source private cloud computing framework for efficient, scalable, and stable soft-realtime event processing."

depend() {
	need localmount
	need net
	after firewall
}
start() {
	HOME="/" $command start
}
stop() {
	HOME="/" $command stop
}
restart() {
	HOME="/" $command restart
}
status() {
	HOME="/" $command test
	if [ $? -eq 0 ]; then
		einfo "status: started"
		return 0
	else
		einfo "status: stopped"
		return 3
	fi
}