Bug #2411

Debian contextualization scripts runs on all runlevels

Added by Andrey Perminov over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:10/25/2013
Priority:LowDue date:
Assignee:Javi Fontan% Done:

0%

Category:Context
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.2

Description

Current vmcontext script does not recognize current operation (start, stop, reload) and proceed all steps on each run. Specially it runs on VM reboot / shutdown initiated from OS. This could be easily fixed by adding standart case operator with start/stop/reload selection.

Associated revisions

Revision eb342297
Added by Javi Fontan over 7 years ago

bug #2411: only run vmcontext with parameter start

History

#1 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Pending to New
  • Assignee set to Javi Fontan
  • Target version set to Release 4.4

#2 Updated by Javi Fontan over 7 years ago

  • Status changed from New to Assigned

You are right. While we don't fix this you can add this lines just after function declaration in /etc/init.d/vmcontext:

if [ "$1" != "start" ]; then
    exit 0
fi

#3 Updated by Ruben S. Montero over 7 years ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

Also available in: Atom PDF