[PVE-User] Bug found in centos-7-default_20160205_amd64 LXC container template.

Eric Renfro psi-jack at linux-help.org
Sat Jul 23 06:34:28 CEST 2016


I recently found a bug in the LXC container template for the currently available CentOS 7 
LXC container template.

I found this with great surprise after a specific systemd-run service, zabbix-agent, was 
configured to use /var/run/zabbix/zabbix_agentd.pid for its PID file, but systemd couldn't 
read the PID file from /run/zabbix/zabbix_agentd.pid as it normally would.

The reason:

In CentOS 7 proper, /var/run is a symlink to ../run, effectively making /run the actual 
statefile holding directory which is usually tmpfs. Because that symlink didn't exist, it was 
storing the statefiles on the actual filesystem and not /run where it belongs.

After I manually replaced /var/run with the appropriate symlink to ../run, zabbix-agent 
was started and running just fine with no further issues.

Yes, this was also an error in my configuration file for Zabbix, but it's also an issue in the 
fact /var/run is supposed to be a symlink to ../run as well, double-edged sword.

Eric Renfro

More information about the pve-user mailing list