Prevent services from auto-starting during installation.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-12-12 21:13:43 -06:00
parent 7bb0aa3ca7
commit a4bd63df49
No known key found for this signature in database
GPG Key ID: 9FC8B9E008872109
2 changed files with 7 additions and 3 deletions

View File

@ -5,4 +5,7 @@ set -x
apt-get update
# Prevent systemd auto-startup
ln -s /dev/null /etc/systemd/system/beanstalkd.service
$minimal_apt_get_install beanstalkd

View File

@ -3,9 +3,10 @@ set -e
source /bd_build/buildconfig
set -x
$minimal_apt_get_install cron
# Prevent systemd auto-startup
ln -s /dev/null /etc/systemd/system/cron.service
service cron stop
$minimal_apt_get_install cron
chmod 600 /etc/crontab
@ -21,4 +22,4 @@ rm -f /etc/cron.daily/password
rm -f /etc/cron.weekly/fstrim
cp -r /bd_build/cron/. /etc/cron.d/
chmod -R 600 /etc/cron.d/*
chmod -R 600 /etc/cron.d/*