mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 17:06:32 -04:00
Please note that this is a development version of nova. Many features are not available. Currently nova works on FreeBSD 11 and supports QEMU and Xen. Common issues: - Security groups are not implemented - ARP spoofing, DHCP isolation protection are not implemented - Nova services work from the root user - No IPv6 support QEMU issues: - Need to enable serialconsole (TCP) - Need to disable online CPU tracking - Cannot mount cinder volumes Xen issues: - Live snapshots don't work - No support for cinder volume hot-plugging - XENBUS delay (5 min) when using qemu driver and COW images - Some Linux images cannot be booted For further FreeBSD specific notes please refer to port's pkg-message. PR: 215151 Submitted by: Alexander Nusov (alexander.nusov@nfvexpress.com)
53 lines
1.1 KiB
Bash
53 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: nova_scheduler
|
|
# REQUIRE: LOGIN
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable nova_scheduler:
|
|
#
|
|
# nova_scheduler_enable="YES"
|
|
#
|
|
# nova_scheduler_enable (bool):
|
|
# Set it to "YES" to enable nova_scheduler.
|
|
# Default is "NO".
|
|
#
|
|
# nova_scheduler_logdir (str):
|
|
# Set it to chagge log directory
|
|
# Default is "/var/log/nova"
|
|
#
|
|
# nova_scheduler_args (str):
|
|
# Set it to change command line arguments.
|
|
# Default is "--log-file ${nova_scheduler_logdir}/nova-scheduler.log"
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=nova_scheduler
|
|
rcvar=nova_scheduler_enable
|
|
|
|
PATH=%%PREFIX%%/bin:%%PREFIX%%/sbin:$PATH
|
|
|
|
pidfile="/var/run/nova-scheduler.pid"
|
|
procname="%%PREFIX%%/bin/python2.7"
|
|
|
|
start_precmd=nova_precmd
|
|
|
|
load_rc_config $name
|
|
|
|
: ${nova_scheduler_enable:="NO"}
|
|
: ${nova_scheduler_logdir:="/var/log/nova"}
|
|
: ${nova_scheduler_args:="--log-file ${nova_scheduler_logdir}/nova-scheduler.log"}
|
|
|
|
command="/usr/sbin/daemon"
|
|
command_args="-f -p ${pidfile} nova-scheduler ${nova_scheduler_args}"
|
|
|
|
nova_precmd() {
|
|
mkdir -p ${nova_scheduler_logdir}
|
|
}
|
|
|
|
run_rc_command "$1"
|