init: support custom actions
Bug #94873 reported by
Alex Smith
This bug affects 8 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Initctl should have a reload command which allows you to send a signal to a process, SIGHUP by default, although it should allow you to specify a different signal such as SIGUSR1. This would be the equivalent of having a reload command in a sysvinit script. It is useful for if you need to send SIGHUP to a process without using hacks to find the pid.
Changed in upstart: | |
status: | Confirmed → Triaged |
Changed in upstart: | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Confirmed |
Changed in upstart: | |
milestone: | 0.5 → none |
Changed in upstart: | |
milestone: | none → 0.10 |
To post a comment you must log in.
The way in which I've been thinking of doing this is to permit the job to define custom actions (in addition to those built-in during the usual job cycle).
These actions would be permitted to be run while the job is running, and would receive the current pid as an environment variable, etc.
If you look at the upstart code, you'll see that most of the support is already there for this and it just needs completing.
In particular, the syntax for specifying them in the configuration file.