Linux system changes the shutdown waiting time

Change DefaultTimeoutStopSec in /etc/systemd/system.conf

#/bin/sh
echo "config shutdown time"
CONFIG_PARA='#DefaultTimeoutStopSec=90s/DefaultTimeoutStopSec=10s'
echo password| sudo -S  sed -i s/$CONFIG_PARA/ /etc/systemd/system.conf

Guess you like

Origin blog.csdn.net/amwha/article/details/115066274