20 lines
749 B
Plaintext
20 lines
749 B
Plaintext
|
#!/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");
|
||
|
|