ons 2010-05-26 klockan 10:01 +0100 skrev James Findley:
It's really not at all uncommon for me to need to modify an init
script.
There would be much rage if in order to do this I had to download the
SRPM, extract the init code, figure out what I needed to change, modify
it, recompile then install.
Various ways to deal with that:
1. Change the Exec=/usr/libexec/food to
ExecStart=/usr/local/sbin/foodwrapper
2. Add some hook support in the systemd config files.
3. Add support for switching specific services back to using the
initscript even when booting with systemd.
But on the other hand, shell scripts can be optimised too. Maybe the awk
call is redundant anyway? Maybe something like foo="${bar%.conf}" would
be enough?
/Alexander
PS.
Someday I should go on a rampage and submit patches that add "set -e;
set -o pipefail" to the start of every shell script in the distro. Or
maybe not...