[systemd-devel] oneshot & restart

Lennart Poettering lennart at poettering.net
Thu Feb 9 14:23:11 UTC 2017


On Wed, 18.01.17 12:26, lejeczek (peljasz at yahoo.co.uk) wrote:

> hi all
> I'm reading man pages but cannot see whether there is a conflict there,
> a unit:
> 
> [Service]
> Type=oneshot
> RemainAfterExit=yes
> TimeoutSec=0
> 
> $ systemctl edit
> [Service]
> Restart=on-failure
> RestartSec=90
> TimeoutSec=10
> 
> and I see:
> 
>    Loaded: error (Reason: Invalid argument)
>   Drop-In: /etc/systemd/system/ipa.service.d
>            └─override.conf
>    Active: active (exited) since Wed 2017-01-18 11:25:08 GMT; 25min ago
>  Main PID: 17579 (code=exited, status=0/SUCCESS)
>    CGroup: /system.slice/ipa.service
> 
> btw. I'm reading man page on edit
> "... to extend or override the specified unit."
> Is it that - override.conf extends by what is not in the original unit file
> and overrides what is there in the original ?

Usually you find more information about loading failures in the logs
of the service manager. Please check.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list