1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/testing/cloudi/cloudi.initd
Michael Truog e259406f44 testing/cloudi: configuration fixes
* cloudi.initd required the HOME environment variable due to erlang's erlexec
* 0010-Set-configured-log-path.patch was necessary to fix a path in /etc/cloudi/cloudi.conf
* Make the erlang package a runtime dependency
2017-08-03 20:36:58 +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
}