[Bug 613231] Re: Option to quiet /lib/init/upstart-jobs [RFE,PATCH]
Jouko Orava
joorava at iki.fi
Mon Sep 17 13:50:06 UTC 2012
Here is the updated patch against upstart-1.5, with three changes
compared to earlier versions:
First, the optional config file is moved to /etc/default/upstart-job.
Second, there is only one variable, ECHO.
Third, ECHO defaults to "echo" unless /etc/default/upstart-job exists
and redefines it. (Normally, /etc/default/upstart-job does not exist,
and that is fine.) If DPKG_MAINTSCRIPT_PACKAGE is not empty, then ECHO
is set to : silencing all messages, regardless of what /etc/default
/upstart-job set it to.
** Patch added: "Teach upstart-job about /etc/default/upstart-job"
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/613231/+attachment/3320340/+files/upstart-1.5-joorava.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/613231
Title:
Option to quiet /lib/init/upstart-jobs [RFE,PATCH]
Status in “upstart” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: upstart
/lib/init/upstart-job clutters my messages with duplicate, unnecessary
messages. I want an option to silence it.
The same notification, "Rather than invoking init scripts through /etc/init.d, ...", is output every single time any init script linked to upstart-job is executed. If I modify /lib/init/upstart-job directly, updating upstart becomes difficult.
This script is a Debian/Ubuntu addition, fully defined in the upstart-*.diff.
I've attached the both a patch, and the replacement upstart-job script
itself; these are compatible with both upstart-0.6.5 and 0.6.6.
Default behaviour stays exactly the same.
Short description of the changes:
The ECHO variable is split into two, ECHO_NOTE and ECHO_ERROR, which receive the same values ECHO had.
However, if file /etc/upstart-jobs.conf exists, it is sourced, so that the two variables can be overridden easily.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/613231/+subscriptions
More information about the foundations-bugs
mailing list