diff -Nur e-smith-pptpd-2.6.0.old/createlinks e-smith-pptpd-2.6.0/createlinks --- e-smith-pptpd-2.6.0.old/createlinks 2008-10-07 13:36:54.000000000 -0400 +++ e-smith-pptpd-2.6.0/createlinks 2020-12-11 11:07:19.729000000 -0500 @@ -18,6 +18,7 @@ user-modify user-modify-admin user-delete + e-smith-pptpd-update )); } foreach (qw(ppp/ip-up.local ppp/ip-down.local)) @@ -31,6 +32,7 @@ user-modify user-modify-admin user-delete + e-smith-pptpd-update )); } @@ -47,12 +49,21 @@ foreach $event (qw(ip-up.pptpd ip-down)) { event_link("pptp-interface-access", $event, "70"); - safe_symlink("adjust", "root/etc/e-smith/events/$event/services2adjust/masq"); + safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/masq"); } event_link("clear-pptp-interfaces", "local", "50"); templates2events("/etc/rc.d/init.d/masq", qw(ip-up.pptpd ip-down)); -safe_symlink("../daemontools", "root/etc/rc.d/init.d/supervise/pptpd"); -service_link_enhanced("pptpd", "S90", "7"); + +#-------------------------------------------------- +# actions for e-smith-pptpd-update event: +#-------------------------------------------------- +$event = "e-smith-pptpd-update"; +# systemd-specific action mandatory for this package-update event +event_link("systemd-reload", $event, "89"); +event_link("systemd-default", $event, "88"); +safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/pptpd"); +safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/masq"); + diff -Nur e-smith-pptpd-2.6.0.old/root/usr/lib/systemd/system/pptpd.service.d/50-koozali.conf e-smith-pptpd-2.6.0/root/usr/lib/systemd/system/pptpd.service.d/50-koozali.conf --- e-smith-pptpd-2.6.0.old/root/usr/lib/systemd/system/pptpd.service.d/50-koozali.conf 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-pptpd-2.6.0/root/usr/lib/systemd/system/pptpd.service.d/50-koozali.conf 2020-12-11 11:02:03.266000000 -0500 @@ -0,0 +1,5 @@ +[Service] +ExecStartPre=/sbin/e-smith/service-status pptpd + +[Install] +WantedBy=sme-server.target