EVE-NG推广
查看: 1848|回复: 0

Fix startup capdog and cpu limit

3

主题

11

回帖

157

积分

初级会员

Rank: 2

积分
157
本帖最后由 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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则


Copyright   ©2015-2024  EmulatedLab  Powered by Discuz!©   ( 浙ICP备2021010423号-1 )
快速回复 返回列表 返回顶部