Re: [systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-05 Thread Kok, Auke-jan H
On Fri, Oct 5, 2012 at 4:11 PM, Thomas Bächler wrote: > Running as a user instance won't work at all if systemd isn't running as > system > manager, so refuse to start in that case. huh? I'd like to think this is a situation that should really work... - to test systemd in a non-systemd environ

[systemd-devel] [PATCH 2/2] core/swap.c: Do not add Before=swap.target to swap units.

2012-10-05 Thread Thomas Bächler
The fstab generator adds Before=swap.target by default, and when creating a custom .swap unit, you can also add Before=swap.target to the unit. However, it is impossible to not have this ordering dependency right now. Virtually all existing setups likely use the fstab generator, so this change is

[systemd-devel] [PATCH 1/2] core: Refuse to run a user instance when the system hasn't been booted with systemd.

2012-10-05 Thread Thomas Bächler
Running as a user instance won't work at all if systemd isn't running as system manager, so refuse to start in that case. Signed-off-by: Thomas Bächler --- src/core/main.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/core/main.c b/src/core/main.c index f9aba46..3df38c2 100644 ---

Re: [systemd-devel] conditions in systemd service file

2012-10-05 Thread EEEEEE AAAAAA
Not in general. Some specific conditionals are supported, see "man > systemd.unit". They are not enough for me if I didn't look at wrong place. > If you need something like a shell script, use a shell > script in your ExecStart. > This makes sense. I'll try. Thank you! ___

Re: [systemd-devel] conditions in systemd service file

2012-10-05 Thread Tom Gundersen
On Fri, Oct 5, 2012 at 6:30 PM, EE AA wrote: > Is it possible to use conditions (like if) in systemd service file. > > For example, if XYZ="on" in configuration file, then start another service. Not in general. Some specific conditionals are supported, see "man systemd.unit". If you need

[systemd-devel] conditions in systemd service file

2012-10-05 Thread EEEEEE AAAAAA
Hi, Is it possible to use conditions (like if) in systemd service file. For example, if XYZ="on" in configuration file, then start another service. Is is possible? ___ systemd-devel mailing list [email protected] http://lists.freedesk