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

--- Comment #4 from Brian Read <[email protected]> ---
Updated createlinks etc to latest systemd format:

#!/usr/bin/perl -w

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

# Start and stop links

#service_link_enhanced("httpd-pki", "S86", "7");
#service_link_enhanced("httpd-pki", "K15", "6");
#service_link_enhanced("httpd-pki", "K15", "0");
#service_link_enhanced("httpd-pki", "K15", "1");

#safe_symlink("../daemontools" , 'root/etc/rc.d/init.d/supervise/httpd-pki');
#safe_symlink("/var/service/httpd-pki" , 'root/service/httpd-pki');

# Panel links

panel_link("phpki", 'manager');

# Events links
templates2events("/etc/httpd/pki-conf/httpd.conf", qw(bootstrap-console-save
conf-userpanel domain-modify));
safe_symlink("sigusr1",
"root/etc/e-smith/events/conf-userpanel/services2adjust/httpd-pki");
safe_symlink("sigusr1",
"root/etc/e-smith/events/domain-modify/services2adjust/httpd-pki");
safe_symlink("sigusr1",
"root/etc/e-smith/events/logrotate/services2adjust/httpd-pki");

# Create needed empty files
safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/pki_access_log");
safe_touch("root/etc/e-smith/events/logrotate/logfiles2timestamp/var/log/httpd/pki_error_log");
safe_touch("root/var/service/httpd-pki/down");

# our event specific for updating with yum without reboot
$event = "smeserver-phpki-ng-update";
#add here the path to your templates needed to expand
#see the /etc/systemd/system-preset/49-koozali.preset should be present for
systemd integration on all you yum update event

foreach my $file (qw(
                /etc/systemd/system-preset/49-koozali.preset
                /etc/httpd/conf/httpd.conf
                /etc/httpd/pki-conf/httpd.conf

))
{
    templates2events( $file, $event );
}

#action needed in case we have a systemd unit
event_link("systemd-default", $event, "10");
event_link("systemd-reload", $event, "50");

#action specific to this package
#event_link("conf-timezone", $event, "30");
#services we need to restart
safe_symlink("restart",
"root/etc/e-smith/events/$event/services2adjust/httpd-pki");
safe_symlink("restart",
"root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");

and also make the loadmodule changes to the templates. Why do these rpm have
bot the expanded result (one example I guess) of a template as well as the
template itself in the tree? It confuses simpletons like me! I make the change
to the expanded onme instead of the template.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee 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