disable an event.d entry?

Asked by paul fox

i need the ability to disable an event.d entry without removing the entry completely. this is the equivalent of commenting a line in /etc/inittab. this might be to temporarily disable a serial line getty, or whatever.

does this mechanism already exist? (if not -- please don't be tempted to use the file modes to do this -- please add a real "enabled/disabled" keyword.)

thanks....

Question information

Language:
English Edit question
Status:
Answered
For:
upstart Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#1

For what reason do you wish to disable it?

Do you want it disabled from:
 * automatic starting by event
or
 * manual starting by system administrator

Revision history for this message
paul fox (pgf-launchpad) said :
#2

ah -- good question. i'm thinking of the automatic case, to either prevent something from starting at boot, or to keep it from respawning, perhaps during system maintenance of some sort. picture temporarily removing an external peripheral (a modem, or a webcam) and wanting to disable the service that drives it until it's re-installed.

perhaps this mechanism is already available -- for instance, what would happen if i simply moved the entry into a subdirectory of event.d to disable it? would the presence of that subdirectory confuse upstart?

or, can it be done by creating and removing symlinks to a directory of "real" events? (this might be similar to the "available" and "enabled" subdirectories used
for webserver config under debian/ubuntu.)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) said :
#3

Have created a wishlist bug report for this.

Moving into a sub-directory would just rename that event to include the subdirectory name (e.g. "foo/bar").

Symlinks would work, but I've generally found symlinking things into directories as a method of enabling or disabling quite distasteful.

Can you help with this problem?

Provide an answer of your own, or ask paul fox for more information if necessary.

To post a message you must log in.