Unfortunately the systemd
that ships with CentOS 7.x is stalled at v219 - that is pretty old now, and there are some great features you're missing out on.
Thankfully facebookincubator/rpm-backports and https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/ have come to the rescue!
Note: you really need to pay attention to the SELinux comment - if you don't disable it you're probably going to brick your host. Thankfully I tried this in a disposable vagrant first...
Check if you need to.
$ getenforce
Enforcing
If your policy is Enforcing
as above, you'll want to turn it off.
- edit
/etc/sysconfig/grub
and addselinux=0
to the end ofGRUB_CMDLINE_LINUX
. - run
grub2-mkconfig > /boot/grub2/grub.cfg
- reboot
After your reboot you should find SELinux has been disabled.
$ getenforce
Disabled
- wget https://copr.fedorainfracloud.org/coprs/jsynacek/systemd-backports-for-centos-7/repo/epel-7/jsynacek-systemd-backports-for-centos-7-epel-7.repo -O /etc/yum.repos.d/jsynacek-systemd-centos-7.repo
- yum upgrade systemd
- reboot