diff -urN e-smith-qmail-2.6.0.old/createlinks e-smith-qmail-2.6.0/createlinks --- e-smith-qmail-2.6.0.old/createlinks 2008-10-07 21:37:10.000000000 +0400 +++ e-smith-qmail-2.6.0/createlinks 2020-11-14 10:14:37.695951562 +0400 @@ -38,6 +38,7 @@ host-delete host-modify post-upgrade + e-smith-qmail-update )); } @@ -57,6 +58,7 @@ host-delete host-modify post-upgrade + e-smith-qmail-update )); } @@ -188,13 +190,20 @@ event_link("qmail-ipup", $event, "20"); #-------------------------------------------------- -# actions for ip-up event: +# actions for ip-change event: #-------------------------------------------------- $event = "ip-change"; safe_symlink("sighup", "root/etc/e-smith/events/$event/services2adjust/qmail"); #-------------------------------------------------- +# actions for e-smith-qmail-update event: +#-------------------------------------------------- +$event = "e-smith-qmail-update"; + +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/qmail"); + +#-------------------------------------------------- # actions for pseudonym-{create,delete,modify} #-------------------------------------------------- foreach $event ( qw(pseudonym-create pseudonym-modify pseudonym-delete diff -urN e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system/qmail.service e-smith-qmail-2.6.0/root/usr/lib/systemd/system/qmail.service --- e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system/qmail.service 1970-01-01 04:00:00.000000000 +0400 +++ e-smith-qmail-2.6.0/root/usr/lib/systemd/system/qmail.service 2020-11-14 10:51:18.636587154 +0400 @@ -0,0 +1,14 @@ +[Unit] +Description=qmail, message transfer agent +After=network.target + +[Service] +Type=oneshot +ExecStartPre=/sbin/e-smith/service-status qmail +ExecStart=/usr/bin/sv u /service/qmail +ExecStop=/usr/bin/sv stop /service/qmail +ExecReload=/usr/bin/sv t /service/qmail +RemainAfterExit=yes + +[Install] +WantedBy=sme-server.target diff -urN e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset e-smith-qmail-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset --- e-smith-qmail-2.6.0.old/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset 1970-01-01 04:00:00.000000000 +0400 +++ e-smith-qmail-2.6.0/root/usr/lib/systemd/system-preset/80-koozali-qmail.preset 2020-11-13 21:30:43.385488184 +0400 @@ -0,0 +1 @@ +enable qmail.service