Discussion:
oneshot & restart
Add Reply
lejeczek
2017-01-18 12:26:19 UTC
Reply
Permalink
Raw Message
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.
Lennart Poettering
2017-02-09 14:23:11 UTC
Reply
Permalink
Raw Message
Post by lejeczek
hi all
I'm reading man pages but cannot see whether there is a conflict there,
[Service]
Type=oneshot
RemainAfterExit=yes
TimeoutSec=0
$ systemctl edit
[Service]
Restart=on-failure
RestartSec=90
TimeoutSec=10
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
Loading...