Feature #867

Runlevel adjust action

Added by Davide Principi over 9 years ago. Updated over 8 years ago.

Status:CLOSEDStart date:03/13/2012
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-base
Target version:DEV1
Resolution: NEEDINFO:

Description

This action is plugged-in when a package needs to modify the runlevel configuration.

Instead of calling chkconfig or similar directly the package MUST link this action.

The action scans service keys under configuration database:
  • if service has a comma-separated list of runlevel numbers in prop Runlevels, for each runlevel:
    • if service has status enabled it is enabled on startup
    • else service is disabled

e.g.

httpd-admin=service
    TCPPort=980
    access=localhost
    status=enabled
    Runlevels=2,3,4,5

Related issues

Related to NethServer 6 - Enhancement #1873: Base: implement runlevel-adjust event CLOSED 04/15/2013 04/15/2013

Associated revisions

Revision 6f7e7b10
Added by Davide Principi over 9 years ago

runlevel-adjust: added runlevel configurator action. Refs #867 - Runlevel adjust action

Also the Runlevels prop of each service changes the action behaviour.

Revision d79ffdbf
Added by Davide Principi over 9 years ago

nethserver-httpd-admin-update: linked firewall-adjust, runlevel-adjust actions. Refs #866, #867

Revision db1ba4b0
Added by Davide Principi over 9 years ago

httpd-admin default configuration database: added Runlevels 2,3,4,5 prop. Refs #867 - Runlevel adjust action

History

#1 Updated by Davide Principi over 9 years ago

  • Status changed from NEW to CLOSED
  • Assignee set to Davide Principi
  • % Done changed from 0 to 100

Only the runlevels specified in Runlevels prop are affected by this action.

Service records that are missing Runlevels prop are skipped.

#2 Updated by Davide Principi over 9 years ago

  • Description updated (diff)

#3 Updated by Davide Principi over 8 years ago

  • Project changed from 1 to NethServer 6

Also available in: Atom PDF