diff --git a/systemvm/debian/etc/rsyslog.conf b/systemvm/debian/etc/rsyslog.conf index 8dc7c7504ca..c7de03d5ad6 100644 --- a/systemvm/debian/etc/rsyslog.conf +++ b/systemvm/debian/etc/rsyslog.conf @@ -92,7 +92,7 @@ news.notice -/var/log/news/news.notice # # Emergencies are sent to everybody logged in. # -*.emerg * +*.emerg :omusrmsg:* # # I like to have messages displayed on the console, but only on a virtual diff --git a/systemvm/debian/etc/systemd/system/cloud-postinit.service b/systemvm/debian/etc/systemd/system/cloud-postinit.service index c23516e67ff..19ddfcc6384 100644 --- a/systemvm/debian/etc/systemd/system/cloud-postinit.service +++ b/systemvm/debian/etc/systemd/system/cloud-postinit.service @@ -1,7 +1,7 @@ [Unit] Description=CloudStack post-patching init script After=cloud-early-config.service network.target local-fs.target -Before=ssh.service +Before=ssh.service apache2.service Requires=network.service [Install] diff --git a/tools/appliance/systemvmtemplate/scripts/finalize.sh b/tools/appliance/systemvmtemplate/scripts/finalize.sh index 260bddff4e5..e5d15ecb61c 100644 --- a/tools/appliance/systemvmtemplate/scripts/finalize.sh +++ b/tools/appliance/systemvmtemplate/scripts/finalize.sh @@ -24,6 +24,12 @@ function configure_misc() { echo "cloud:`openssl rand -base64 32`" | chpasswd } +function configure_rundisk_size() { + # Debian's default is 10% of total RAM. This is too low when total is 256M. + # See https://manpages.debian.org/stretch/initscripts/tmpfs.5.en.html + echo "tmpfs /run tmpfs nodev,nosuid,size=20%,mode=755 0 0" >> /etc/fstab +} + function configure_sudoers() { cat >/etc/sudoers <