Modifying Debian/Ubuntu /lib/init/upstart-job [#613231]
Jouko Orava
jouko.orava at iki.fi
Tue Aug 3 23:50:18 BST 2010
Hello!
/lib/init/upstart-job (symlinked from a number of init scripts) is one of
those I'd like to stop spamming my logs with useless information.
Personally, I'd prefer to remove the useless $ECHO statements,
(except for the error case).
Assuming that is not acceptable, I created launchpad bug entry #613231,
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/613231
where I attached both a patch on top of the Debian/Ubuntu diff,
http://launchpadlibrarian.net/53016160/upstart-0.6.5.patch
and a replacement /lib/init/upstart-job script,
http://launchpadlibrarian.net/53016158/upstart-job
In this version, default behaviour stays exactly the same, but:
- The ECHO variable is split into two, ECHO_NOTE and ECHO_ERROR,
which receive the same values ECHO had.
- If file /etc/upstart-jobs.conf exists,
(defined by the variable UPSTART_JOB_CONF in the script),
it is sourced, so that the variables can be overridden easily.
Is there any chance of having this upstream?
Cheers,
Jouko
More information about the upstart-devel
mailing list