2014-05-28 1:12 GMT+02:00 Thomas H.P. Andersen <pho...@gmail.com>:
> From: Thomas Hindoe Paaboel Andersen <pho...@gmail.com>
>
> Reuses logic from service.c and the rc-local generator.
>
> Note that this drops reading of chkconfig entirely. It also drops reading
> runlevels from the LSB headers. The runlevels were only used to check for
> runlevels outside of the normal 1-5 range and then add special dependencies
> and settings. Special runlevels were dropped in the past so it seemed to be
> unused code.
>
> Also note that this code behaves differently to the old if an initcsript
> and native unit exist with the same name. Before the initscript would be
> ignored but now a .service file is created in /run which will override
> the native unit.

this feels wrong, the native unit should override the sysv one.
Is there any reason why you want to change this?
Couldn't you just use "arg_dest = argv[3];" instead?

> The old code dealing with initscripts are left in for now as the generator
> will run first and the old code will then ignore the initscripts since
> unit files exist for them. I will add another patch to rip the old code out
> later.
>
> The patch is WIP and only tested lightly. I am mostly looking for comments
> if this is a good idea at all.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to