initial commit of file from CVS for smeserver-zabbix-proxy on Sat Sep 7 21:18:29 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:18:29 +10:00
parent 58fbe68965
commit 8d98403b11
38 changed files with 626 additions and 2 deletions

19
createlinks Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# Templates to expand
templates2events("/etc/zabbix/zabbix_proxy.conf", qw(zabbix-proxy-update bootstrap-console-save));
templates2events("/etc/sudoers", "zabbix-proxy-update");
templates2events("/etc/e-smith/sql/init/80zabbix-proxy", qw(zabbix-proxy-update bootstrap-console-save));
# Services to restart
safe_symlink("restart", "root/etc/e-smith/events/zabbix-proxy-update/services2adjust/mysql.init");
safe_symlink("restart", "root/etc/e-smith/events/zabbix-proxy-update/services2adjust/zabbix-proxy");
# Start and stop links
service_link_enhanced("zabbix-proxy", "S99", "7");
service_link_enhanced("zabbix-proxy", "K10", "6");
service_link_enhanced("zabbix-proxy", "K10", "0");