[systemd-devel] conditions in systemd service file

Tom Gundersen teg at jklm.no
Fri Oct 5 09:40:00 PDT 2012


On Fri, Oct 5, 2012 at 6:30 PM, EEEEEE AAAAAA <ucazuga at gmail.com> 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 something like a shell script, use a shell
script in your ExecStart.

-t


More information about the systemd-devel mailing list