When I was installing my zabbix server (version 2.2 branch) from RPM package, I encountered the following error when I was trying to enable the service.
Failed to execute operation: No such file or directory
After reading this bugzilla ticket, I realize that the enable
option in systemd does not follow symbolic links. Checking against my file at /usr/lib/systemd/system/zabbix-server.service
it was indeed a symbolic to /etc/alternatives/zabbix-server-systemd
.
Hence the fix is a one-line fix:
rm /usr/lib/systemd/system/zabbix-server.service; cp /etc/alternatives/zabbix-server-systemd /usr/lib/systemd/system/zabbix-server.service
Now I can enable zabbix-server
.