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
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
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
---
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!
___
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
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