OpenNebula/one#1684: Support restart on SysV recontextualization scripts

pull/140/head
Vlastimil Holer 6 years ago
parent 27aa4c280a
commit a4ebef8629
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -30,14 +30,14 @@
. /lib/lsb/init-functions . /lib/lsb/init-functions
case "$1" in case "$1" in
start) start|restart)
export TIMEOUT=0 export TIMEOUT=0
log_daemon_msg $"Starting OpenNebula forced reconfiguration" log_daemon_msg $"Starting OpenNebula forced reconfiguration"
/usr/sbin/one-context-run force /usr/sbin/one-context-run force
log_end_msg $? log_end_msg $?
;; ;;
*) *)
log_action_msg $"Usage: $0 {start}" log_action_msg $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

@ -34,13 +34,13 @@
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
case "$1" in case "$1" in
start) start|restart)
export TIMEOUT=0 export TIMEOUT=0
action $"Starting OpenNebula forced reconfiguration: " \ action $"Starting OpenNebula forced reconfiguration: " \
/usr/sbin/one-context-run force /usr/sbin/one-context-run force
;; ;;
*) *)
echo $"Usage: $0 {start}" echo $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

@ -30,14 +30,14 @@
. /lib/lsb/init-functions . /lib/lsb/init-functions
case "$1" in case "$1" in
start) start|restart)
export TIMEOUT=0 export TIMEOUT=0
log_daemon_msg $"Starting OpenNebula reconfiguration" log_daemon_msg $"Starting OpenNebula reconfiguration"
/usr/sbin/one-context-run /usr/sbin/one-context-run
log_end_msg $? log_end_msg $?
;; ;;
*) *)
log_action_msg $"Usage: $0 {start}" log_action_msg $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

@ -34,13 +34,13 @@
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
case "$1" in case "$1" in
start) start|restart)
export TIMEOUT=0 export TIMEOUT=0
action $"Starting OpenNebula reconfiguration: " \ action $"Starting OpenNebula reconfiguration: " \
/usr/sbin/one-context-run /usr/sbin/one-context-run
;; ;;
*) *)
echo $"Usage: $0 {start}" echo $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

@ -30,12 +30,12 @@
. /lib/lsb/init-functions . /lib/lsb/init-functions
case "$1" in case "$1" in
start) start|restart)
log_daemon_msg $"Starting OpenNebula delayed reconfiguration" log_daemon_msg $"Starting OpenNebula delayed reconfiguration"
/usr/sbin/one-context-run /usr/sbin/one-context-run
log_end_msg $? log_end_msg $?
;; ;;
*) *)
log_action_msg $"Usage: $0 {start}" log_action_msg $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

@ -34,12 +34,12 @@
. /etc/rc.d/init.d/functions . /etc/rc.d/init.d/functions
case "$1" in case "$1" in
start) start|restart)
action $"Starting OpenNebula delayed reconfiguration: " \ action $"Starting OpenNebula delayed reconfiguration: " \
/usr/sbin/one-context-run /usr/sbin/one-context-run
;; ;;
*) *)
echo $"Usage: $0 {start}" echo $"Usage: $0 {start|restart}"
exit 2 exit 2
esac esac

Loading…
Cancel
Save