Linuxシステムがシャットダウン待機時間を変更します

/etc/systemd/system.confのDefaultTimeoutStopSecを変更します

#/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

おすすめ

転載: blog.csdn.net/amwha/article/details/115066274