#!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); safe_symlink("restart", "root/etc/e-smith/events/openvpn-routed-update/services2adjust/openvpn-routed"); safe_symlink("restart", "root/etc/e-smith/events/network-create/services2adjust/openvpn-routed"); safe_symlink("restart", "root/etc/e-smith/events/network-delete/services2adjust/openvpn-routed"); service_link_enhanced("openvpn-routed", "S80", "7"); service_link_enhanced("openvpn-routed", "K25", "6"); service_link_enhanced("openvpn-routed", "K25", "0"); safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/openvpn-routed'); safe_symlink("/var/service/openvpn-routed" , 'root/service/openvpn-routed'); safe_touch("root/var/service/openvpn-routed/down"); safe_touch("root/etc/e-smith/templates/etc/openvpn/routed/management-pass.txt/template-begin"); safe_touch("root/etc/e-smith/templates/etc/openvpn/routed/management-pass.txt/template-end"); #panel_link("openvpnrouted", 'manager'); templates2events("/etc/openvpn/routed/openvpn.conf", "openvpn-routed-update"); templates2events("/etc/openvpn/routed/management-pass.txt", qw(openvpn-routed-update bootstrap-console-save)); templates2events("/etc/openvpn/routed/openvpn.conf", qw(openvpn-routed-update bootstrap-console-save network-create network-delete)); templates2events("/etc/crontab", qw(openvpn-routed-update)); #event_link("openvpn-routed-reload-ccd", "openvpn-routed-update", "20"); event_link("openvpn-routed-update-crl", "openvpn-routed-update", "30"); event_link("openvpn-routed-delete-net", "openvpn-routed-update", "40"); #event_link("openvpn-routed-reload-ccd", "openvpn-routed-reload-ccd", "20"); event_link("openvpn-routed-update-crl", "openvpn-routed-reload-ccd", "30");