Re: [systemd-devel] Service with alternative configuration

2019-03-19 Thread Lennart Poettering
On Mo, 18.03.19 22:01, Marv Lelgemann ([email protected]) wrote: > Am Montag, 11. März 2019 schrieb Lennart Poettering >: > > On Do, 07.03.19 14:03, Marv Lelgemann ([email protected]) wrote: > > > >> I have a systemd service unit of type "dbus". I would like to have the > >> option to restart (

Re: [systemd-devel] Service with alternative configuration

2019-03-18 Thread Marv Lelgemann
Am Montag, 11. März 2019 schrieb Lennart Poettering : > On Do, 07.03.19 14:03, Marv Lelgemann ([email protected]) wrote: > >> I have a systemd service unit of type "dbus". I would like to have the >> option to restart (or stop and start) the service with additional command >> line arguments in "Ex

Re: [systemd-devel] Service with alternative configuration

2019-03-11 Thread Lennart Poettering
On Do, 07.03.19 14:03, Marv Lelgemann ([email protected]) wrote: > I have a systemd service unit of type "dbus". I would like to have the > option to restart (or stop and start) the service with additional command > line arguments in "ExecStart". Do something like this: mkdir -p /etc/system

Re: [systemd-devel] Service with alternative configuration

2019-03-09 Thread Marv Lelgemann
If anyone should be faced with a similar issue, i solved it by setting and unsetting a systemd environment variable (e.g. SERVICE_FOO_OPTARGS) referenced from ExecStart of the service' unit file and then restarting the service. On DBus there are SetEnvironment and UnsetEnvironment methods, or set-e

[systemd-devel] Service with alternative configuration

2019-03-07 Thread Marv Lelgemann
I have a systemd service unit of type "dbus". I would like to have the option to restart (or stop and start) the service with additional command line arguments in "ExecStart". I tried using a template unit with "EnvironmentFile" selected by the instance name. I also tried a template unit with drop