|
本帖最后由 tommiy 于 2018-7-7 06:07 编辑
Depends upon your version running if you see errors in dmesg regarding cpulimit and capdog service.
Replace /etc/systemd/system/capdog.service
with this
[Unit]
Description=capture docker cleaner
[Service]
Type=simple
ExecStart=/opt/unetlab/scripts/capdog.sh &
ExecStop=/usr/bin/killall -9 /opt/unetlab/scripts/capdog.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
then save and restart daemons
systemctl daemon-reload
systemctl restart capdog
also fix the script.
vi /opt/unetlab/scripts/capdog.sh
replace the first line
alias dc="docker -H 127.0.0.1:4243"
with
dc () {
docker -H 127.0.0.1:4243 $@
}
fix cpulimit service
vi /etc/systemd/system/cpulimit.service
and replace line with below
ExecStop=/usr/bin/killall -9 cpulimit-daemon.php & /usr/bin/killall -TERM cpulimit
Understand that the capdog is docker which is not in community version but I've added some of it back in my version. Enough to run containers still have things to do though. |
|