1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-22 02:35:23 +03:00
aports/community/cloudi/cloudi.initd
Michael Truog a11b0ef3c0 community/cloudi: moved from testing
* Updated my email
* Switched url to use HTTPS
2018-04-13 06:11:24 +00:00

35 lines
633 B
Text

#!/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
}