困扰我许久的问题终于解决了
一个是关机卡在mysql
sudo vim /etc/systemd/system/multi-user.target.wants/mysql.service
TimeoutSec=5
另一个是redis
sudo vim /etc/init.d/redis_6379
PASSWORD="1234qwer"
$CLIEXEC -p $REDISPORT -a $PASSWORD shutdown
又多了一个远程打印机
sudo systemctl disable cups-browsed.service
终于能正常关机了
It appears you can reduce the timeout in /etc/systemd/system.conf
:
DefaultTimeoutStartSec=10sDefaultTimeoutStopSec=10s