[systemd-devel] oneshot & restart

lejeczek peljasz at yahoo.co.uk
Wed Jan 18 12:26:19 UTC 2017


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 ?

many thanks,
L.


More information about the systemd-devel mailing list