vmmgr/etc/init.d/vmmgr

17 lines
345 B
Plaintext
Executable File

#!/sbin/openrc-run
command="/usr/share/vmmgr/wsgi.py"
description="VM manager"
pidfile="/var/run/vmmgr.pid"
start_stop_daemon_args="--background --make-pidfile --stdout /var/log/vmmgr.log --stderr /var/log/vmmgr.log"
depend() {
before nginx
}
start_pre() {
if [ ! -f /etc/ssl/services.pem ]; then
/usr/bin/vmmgr init
fi
}