Backlog #605

Make mm_sched behave more like a daemon

Added by Lars Kellogg-Stedman over 9 years ago. Updated over 7 years ago.

Status:PendingStart date:05/02/2011
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Scheduler
Target version:-

Description

This patch makes mm_sched behave more like a typical Unix server:

- It will auto-background by default.
- It provides the "-f" flag to make mm_sched run in the foreground.
- It provides the "-P <pidfile>" flag to make mm_sched write it's pid to a file when in background mode.

This patch includes a change to the /usr/bin/one script to add the "-f" flag to mm_sched.

0001-daemonize-mm_sched.patch Magnifier - Daemonize mm_sched. (4.12 KB) Lars Kellogg-Stedman, 05/02/2011 03:00 PM

History

#1 Updated by Lars Kellogg-Stedman over 9 years ago

On second thought, this patch needs work. Doesn't look like I can close my own issues, though.

#2 Updated by Ruben S. Montero over 9 years ago

  • Tracker changed from Feature to Request

Hi,

I just moved this from feature to request instead of closing it.

Cheers

Ruben

#3 Updated by Lars Kellogg-Stedman over 9 years ago

After looking over other parts of the OpenNebula code, in particular the /usr/bin/one script, this is what I would really like:

- Have oned and mm_sched started from separate init scripts.
- Make PID file management part of the binary, rather than part of the shell script wrapper.
- Standardize command line options across the board, so that everything (a) auto-background by default and (b) accepts "-f" to run in the foreground and "-P <pidfile>" to record pid to a file.

Given sufficient free time I may try to make some progress towards this goal.

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

  • Category set to Scheduler

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

  • Tracker changed from Request to Backlog

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

  • Status changed from New to Pending

Also available in: Atom PDF