[CentOS] Cemtos 7 : Systemd alternatives ?

Tue Jul 15 15:07:28 UTC 2014
Les Mikesell <lesmikesell at gmail.com>

On Tue, Jul 15, 2014 at 9:46 AM, James Hogarth <james.hogarth at gmail.com> wrote:
>>
>> 4.) Debugging.  Why is my unit not starting when I can start it from
>> the command line?  Once I figured out journalctl it was a bit easier,
>> and typically it was SELinux, but no longer being able to just run
>> 'bash -x /etc/rc.d/init.d/foobar' was frustrating.  sytemd disables
>> core dumps on services by default (at least it did on Fedora, the
>> documentation now says it's on by default.  Huh.  I should test
>> that...)
>>
>
> Jon as a heads up this isn't a systemd/el7 thing necessarily...
>
> Look at the daemon function in /etc/init.d/functions that most standard EL
> init scripts will be using...
>
> Core files have been disabled on things started with that by default (need
> to export a variable in the environment of the script usually via
> sysconfig) the whole of el6 ...

Is there a simple generic equivalent to:
sh -x /etc/rc.d/init.d/program_name start
to see how configurations options that are abstracted out of the main
files are being picked up and expanded?

-- 
   Les Mikesell
    lesmikesell at gmail.com