mirror of
https://github.com/YunoHost/lxd_img_builder.git
synced 2024-09-03 19:56:55 +02:00
Try to optimize app CI by disabling useless services in 95% of cases
This commit is contained in:
parent
16be81aaaa
commit
a0e96a7dee
1 changed files with 9 additions and 0 deletions
|
@ -94,6 +94,15 @@ function rebuild_base_lxc()
|
|||
$IN_LXC systemctl -q disable apt-daily-upgrade.service
|
||||
$IN_LXC rm -f /etc/cron.daily/apt-compat
|
||||
$IN_LXC cp /bin/true /usr/lib/apt/apt.systemd.daily
|
||||
|
||||
# Disable services that are useless in the vast majority of cases to try to improve perfs
|
||||
$IN_LXC systemctl -q disable rspamd
|
||||
$IN_LXC systemctl -q disable dovecot
|
||||
$IN_LXC systemctl -q disable postsrsd
|
||||
$IN_LXC systemctl -q disable metronome
|
||||
$IN_LXC systemctl -q disable yunohost-api
|
||||
$IN_LXC sed -i 's/worker_processes.*;/worker_processes 4;/g' /etc/nginx/nginx.conf
|
||||
|
||||
$IN_LXC /bin/bash -c "reboot 0"
|
||||
sleep 5
|
||||
|
||||
|
|
Loading…
Reference in a new issue