https://bugs.contribs.org/show_bug.cgi?id=11046

--- Comment #16 from Brian Read <[email protected]> ---
Here's the contents the createlinks:

#! /usr/bin/perl -w

use esmith::Build::CreateLinks qw(:all);

####################
# links to add

# templates to expand
        templates2events("/etc/e-smith/sql/init/80bandwidthd", qw(
conf-bandwidthd bootstrap-console-save  post-upgrade));
        templates2events("/etc/bandwidthd.conf", qw( conf-bandwidthd
bootstrap-console-save  post-upgrade));
        templates2events("/var/www/bandwidthd/phphtdocs/config.conf", qw(
conf-bandwidthd bootstrap-console-save  post-upgrade));

        templates2events("/etc/httpd/conf/httpd.conf", qw( conf-bandwidthd ));

# services to launch on event
        safe_symlink("restart",
"root/etc/e-smith/events/conf-bandwidthd/services2adjust/bandwidthd");
        safe_symlink("sigusr1",
"root/etc/e-smith/events/conf-bandwidthd/services2adjust/httpd-e-smith");
        safe_symlink("restart",
"root/etc/e-smith/events/conf-bandwidthd/services2adjust/mysql.init");

# links for rc.d from init.d
#       service_link_enhanced("bandwidthd", "S85", "7");
#       service_link_enhanced("bandwidthd", "K45", "6");
#       service_link_enhanced("bandwidthd", "K45", "0");
#       service_link_enhanced("bandwidthd", "K45", "1");


safe_symlink("/etc/e-smith/templates-default/template-begin-php",
"root/etc/e-smith/templates/var/www/bandwidthd/phphtdocs/config.conf/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php",
"root/etc/e-smith/templates/var/www/bandwidthd/phphtdocs/config.conf/template-end");
#safe_symlink("../../../functions/wrapper",
"root/etc/e-smith/web/panels/manager/cgi-bin/bandwidthd");

#Server manager link
panel_link("bandwidthd","manager");

# rpm update action (invoked by yum on install and update
$contrib = "smeserver-bandwidthd";
event_actions("$contrib-update", qw(
  systemd-default 10
));

event_templates("$contrib-update", qw(
  /etc/httpd/conf/httpd.conf
  /etc/crontab
  /etc/systemd/system-preset/49-koozali.preset

));

event_services("$contrib-update", qw(
  httpd-e-smith sigusr1
  php-fpm  reload
));

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to