#!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); service_link_enhanced("memcached-sogo", "S55", "7"); service_link_enhanced("sogod", "S85", "7"); templates2events("/etc/e-smith/sql/init/sogo", qw(email-update bootstrap-console-save)); templates2events("/etc/sogo/sogo.conf", qw(email-update bootstrap-console-save pre-backup)); templates2events("/etc/sysconfig/sogo", qw(email-update bootstrap-console-save)); templates2events("/etc/logrotate.d/sogo", qw(email-update bootstrap-console-save)); templates2events("/etc/pam.d/dovecot", qw(email-update bootstrap-console-save)); templates2events("/etc/sogo/sieve.creds", qw(email-update bootstrap-console-save)); templates2events("/etc/cron.d/sogo", qw(email-update bootstrap-console-save)); templates2events("/etc/dovecot/master.sieve.127.0.0.1", qw(email-update bootstrap-console-save)); safe_symlink("restart", "root/etc/e-smith/events/email-update/services2adjust/sogod"); safe_symlink("restart", "root/etc/e-smith/events/email-update/services2adjust/memcached-sogo"); safe_symlink("restart", "root/etc/e-smith/events/email-update/services2adjust/mysql.init"); event_link("sogo-delete-backup", "pre-backup", "60"); event_link("sogo-delete-backup", "post-backup", "60"); event_link("sogo-backup", "pre-backup", "70"); event_link("sogo-delete-user", "user-delete", "10"); event_link("sogo-upgrade", "email-update", "20"); event_link("sogo-upgrade", "bootstrap-console-save", "80"); panel_link("sogo", "manager"); safe_touch("root/var/service/memcached-sogo/down"); safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/memcached-sogo'); safe_symlink("/var/service/memcached-sogo" , 'root/service/memcached-sogo');