3
# Provides: nova-volume
4
# Required-Start: $remote_fs $syslog
5
# Required-Stop: $remote_fs $syslog
6
# Default-Start: 2 3 4 5
8
# Short-Description: nova-volume
9
# Description: nova-volume
15
DAEMON=/usr/bin/nova-volume
16
DAEMON_ARGS="--flagfile=/etc/nova.conf"
17
PIDFILE=/var/run/nova-volume.pid
21
if test -f /etc/default/nova-volume; then
22
. /etc/default/nova-volume
25
. /lib/lsb/init-functions
27
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
31
test "$ENABLED" = "true" || exit 0
32
log_daemon_msg "Starting nova volume" "nova-volume"
34
if $DAEMON $DAEMON_ARGS start; then
41
test "$ENABLED" = "true" || exit 0
42
log_daemon_msg "Stopping nova volume" "nova-volume"
44
if $DAEMON $DAEMON_ARGS stop; then
51
test "$ENABLED" = "true" || exit 1
53
if $DAEMON $DAEMON_ARGS restart; then
60
test "$ENABLED" = "true" || exit 0
61
status_of_proc -p $PIDFILE $DAEMON nova-volume && exit 0 || exit $?
64
log_action_msg "Usage: /etc/init.d/nova-volume {start|stop|restart|force-reload|status}"