Typical Debian distro has systemd installed and enabled by default. But debian-8.0-standard_8.4-1_amd64.tar.gz template has SYSV in place.
So, i always install systemd on a fresh CT machine created with debian-8.0-standard_8.4-1_amd64.tar.gz template, because everyone expects it on Debian 8.
I never had any problems with it earlier, but I ran into failed installation of MariaDB from repositories.
Here we can check two scenarios. Create fresh CT from 8.0-standard_8.4-1_amd64.tar.gz and try
Scenario 1, works fine:
Scenario 2:
and then, after reboot, try commands from scenario 1. It will fail with error:
So, i always install systemd on a fresh CT machine created with debian-8.0-standard_8.4-1_amd64.tar.gz template, because everyone expects it on Debian 8.
Code:
apt-get update && apt-get install systemd-sysv -y
I never had any problems with it earlier, but I ran into failed installation of MariaDB from repositories.
Here we can check two scenarios. Create fresh CT from 8.0-standard_8.4-1_amd64.tar.gz and try
Scenario 1, works fine:
Code:
apt-get update && apt-get install software-properties-common -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb [arch=amd64,i386] http://mariadb.mirror.nucleus.be/repo/10.1/debian jessie main'
apt-get update && apt-get install mariadb-server -y
Scenario 2:
Code:
apt-get update && apt-get install systemd-sysv -y
reboot
and then, after reboot, try commands from scenario 1. It will fail with error:
Code:
Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.1 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
mariadb-server depends on mariadb-server-10.1 (= 10.1.20+maria-1~jessie); however:
Package mariadb-server-10.1 is not configured yet.
dpkg: error processing package mariadb-server (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.19-18+deb8u4) ...
Processing triggers for systemd (215-17+deb8u5) ...
Errors were encountered while processing:
mariadb-server-10.1
mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)