Line 69: |
Line 69: |
| event_link("sme8admin-parselog","logrotate","15"); | | event_link("sme8admin-parselog","logrotate","15"); |
| | | |
− | ==== Example 3 : sharedfolder==== | + | ==== Example : sharedfolder==== |
| #!/usr/bin/perl -w | | #!/usr/bin/perl -w |
| | | |
Line 136: |
Line 136: |
| templates2events("/etc/rsyncd.conf", "remoteaccess-update"); | | templates2events("/etc/rsyncd.conf", "remoteaccess-update"); |
| | | |
| + | ==== Example : denyhost ==== |
| + | |
| + | #!/usr/bin/perl -w |
| + | |
| + | use esmith::Build::CreateLinks qw(:all); |
| + | |
| + | panel_link("denyhosts", "manager"); |
| + | |
| + | service_link_enhanced("denyhosts", "S01", "7"); |
| + | |
| + | safe_symlink('restart', "root/etc/e-smith/events/conf-denyhosts/services2adjust/denyhosts"); |
| + | |
| + | foreach $file ( |
| + | qw(/var/lib/denyhosts/allowed-hosts /etc/hosts.allow /etc/denyhosts.conf)) |
| + | { |
| + | templates2events($file, qw(bootstrap-console-save conf-denyhosts)); |
| + | } |
| + | |
| + | exit 0; |
| [[Category:SME Server Development Framework]] | | [[Category:SME Server Development Framework]] |
| [[Category:Development Tools]] | | [[Category:Development Tools]] |
| [[Category:SME9-Development]] | | [[Category:SME9-Development]] |