Thursday 1 June 2017

Where did /etc/default/xyz go?! (CentOS 7 / RHEL)

Many services that now rely on systemd now look for their default options elsewhere than /etc/default/...

Instead commonly an 'environment' file is used instead to specify specific switches that a service should use instead.

You can find the environment file by inspecting the .service file e.g.:

cat /usr/lib/systemd/system/keepalived.service | grep ^EnvironmentFile

Although they should be kept in /etc/sysconfig/xyz typically.


Post a Comment