diff -Nur e-smith-base-5.8.0.old/createlinks e-smith-base-5.8.0/createlinks --- e-smith-base-5.8.0.old/createlinks 2020-11-11 14:07:33.351000000 -0500 +++ e-smith-base-5.8.0/createlinks 2020-11-11 15:35:44.424000000 -0500 @@ -34,12 +34,6 @@ )); } -safe_symlink("daemontools", "root/etc/rc.d/init.d/wan"); -service_link_enhanced("wan", "S37", "7"); -service_link_enhanced("wan", "K90", "6"); -service_link_enhanced("wan", "K90", "0"); -service_link_enhanced("wan", "K90", "1"); - # conf-dialup foreach (qw( /etc/sysconfig/network-scripts/ifcfg-ppp0 diff -Nur e-smith-base-5.8.0.old/root/usr/lib/systemd/system/wan.service e-smith-base-5.8.0/root/usr/lib/systemd/system/wan.service --- e-smith-base-5.8.0.old/root/usr/lib/systemd/system/wan.service 1969-12-31 19:00:00.000000000 -0500 +++ e-smith-base-5.8.0/root/usr/lib/systemd/system/wan.service 2020-11-11 15:32:34.522000000 -0500 @@ -0,0 +1,15 @@ +[Unit] +Description=WAN interface for Koozali SME Server +After=network-pre.target networking.service +Before=network-online.target + +[Service] +Type=oneshot +ExecStartPre=/sbin/e-smith/service-status wan +ExecStart=/usr/bin/sv u /service/wan +ExecStop=/usr/bin/sv stop /service/wan +ExecReload=/usr/bin/sv t /service/wan +RemainAfterExit=yes + +[Install] +WantedBy=sme-server.target