This website requires JavaScript.
5718e8fca3c4224b529a3403bc9842e156df77b1
nova /debian /nova-compute.init
70 lines
1.4 KiB
Plaintext
2010年05月27日 23:05:26 -07:00
#! /bin/sh
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Short-Description: nova-compute
# Description: nova-compute
DAEMON=/usr/bin/nova-compute
DAEMON_ARGS="--flagfile=/etc/nova.conf"
PIDFILE=/var/run/nova-compute.pid
if test -f /etc/default/nova-compute; then
. /etc/default/nova-compute
. /lib/lsb/init-functions
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
test "$ENABLED" = "true" || exit 0
log_daemon_msg "Starting nova compute" "nova-compute"
if $DAEMON $DAEMON_ARGS start; then
test "$ENABLED" = "true" || exit 0
log_daemon_msg "Stopping nova compute" "nova-compute"
if $DAEMON $DAEMON_ARGS stop; then
test "$ENABLED" = "true" || exit 1
if $DAEMON $DAEMON_ARGS restart; then
test "$ENABLED" = "true" || exit 0
status_of_proc -p $PIDFILE $DAEMON nova-compute && exit 0 || exit $?
log_action_msg "Usage: /etc/init.d/nova-compute {start|stop|restart|force-reload|status}"