systemd-shutdown.service override timout as its take 90 seconds
Hi
In short,
I see systemd-
I wish to set TimeoutStopSec to lesser value only for it ONLY,
by way other than editing DefaultTimeoutS
I tried for systemd-
As logs indicates systemd-shutdown plays major role, so I assume it may help me.
Pls Correct me.
thanks.
In detail,
# systemctl show systemd-
Description=
# systemctl show systemd-
TimeoutStopUSec=90s
# systemctl cat systemd-
No files found for systemd-
root@tpvm:~# systemctl set-property systemd-
Failed to set unit properties on systemd-
Ques)
Probably Above is not allowed at runtime,
But I wonder, how & why editing /etc/systemd/
90 seconds delay seems to be lot discussed issue. But I could not find conclusive comment, except for reducing
# grep DefaultTimeoutS
#DefaultTimeout
I'm new to systemd.
I see above reduces TimeoutStopUSec for all/many systemd units like
* systemd-
* systemd-
* plymouth-
* mdadm-shutdown.
* snapd.system-
* halt.service
* systemd-
* plymouth-
We are using qemu/kvm based Guest Ubuntu 18.04.4 LTS with
# systemctl --version
systemd 237
So either calling
'shutdown -h -P +0' from its root prompt or
from Host
virsh shutdown --mode=agent VMNAME
Both of above works fine on normal system and it shuts immediately.
But when we deploy our collection of containers/k3s based services etc,
then above takes 90secs.
From systemd logs for shutdown,
I could see following set of processes
are not gracefully shut and killed by SIGKILL (90s delay)
.....
[ 995.336946] systemd-
[ 995.362188] systemd-
[ 995.362582] systemd-
[ 995.363027] systemd-
......
[ 1085.373701] systemd-
[ 1085.379698] systemd-
[ 1085.379860] systemd-
[ 1085.380038] systemd-
[ 1085.380214] systemd-
[ 1085.380392] systemd-
[ 1085.380545] systemd-
[ 1085.380722] systemd-
[ 1085.380873] systemd-
[ 1085.381031] systemd-
[ 1085.381213] systemd-
[ 1085.381370] systemd-
[ 1085.381528] systemd-
[ 1085.381744] systemd-
[ 1085.381919] systemd-
[ 1085.382074] systemd-
[ 1085.382246] systemd-
[ 1085.382399] systemd-
[ 1085.382730] systemd-
[ 1085.382951] systemd-
[ 1085.384749] systemd-
[ 1085.386989] systemd-
[ 1085.389934] systemd-
[ 1085.392324] systemd-
[ 1085.395521] systemd-
[ 1085.401282] systemd-
[ 1085.401447] systemd-
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu systemd Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: