Here’s the requested information:
[mops197] /root # systemctl cat sue_boot.service sue_done.service
# /usr/lib/systemd/system/sue_boot.service
# -*- conf -*-
[Unit]
Description=sue_boot: Example Com. Maintenance
After=postfix.service
[Service]
ExecStart=/usr/sue-ng/libexec/sue_boot start
ExecStop=/usr/sue-ng/libexec/sue_boot stop
Type=oneshot
RemainAfterExit=yes
TimeoutSec=0
SuccessExitStatus=0 1
StandardOutput=journal+console
[Install]
WantedBy=sue_boot.target elz.target
# /usr/lib/systemd/system/sue_done.service
# -*- conf -*-
[Unit]
Description=sue_done: Isolate the Default Target
After=sue_boot.service sue_reboot.service
[Service]
#ExecStart=/usr/bin/systemctl isolate default.target
ExecStart=/usr/bin/systemctl isolate elz.target
# the type *must* be simple, or it won't work
Type=simple
RemainAfterExit=yes
[Install]
WantedBy=sue_boot.target
[mops197] /root # systemctl show sue_boot.service sue_done.service -p Before -p After -p Wants -p Requires
Requires=system.slice sysinit.target
Wants=
Before=sue_done.service sue_reboot.service sue_boot.target shutdown.target
After=postfix.service basic.target system.slice sysinit.target systemd-journald.socket
Requires=system.slice sysinit.target
Wants=
Before=shutdown.target sue_boot.target
After=sue_boot.service sue_reboot.service systemd-journald.socket basic.target sysinit.target system.slice
[mops197] /root # journalctl -b -u sue_boot.service -u sue_done.service --no-pager
Jun 03 12:48:21 mops197.example.com systemd[1]: Starting sue_boot: Example Comp. System Maintenance...
Jun 03 12:48:21 mops197.example.com sue_boot[1003]: Waiting for network to really become online ...
Jun 03 12:48:25 mops197.example.com sue_boot[1004]: waited 0 seconds for the gateway and 2 seconds until it pinged
Jun 03 12:48:25 mops197.example.com sue_boot[1003]: *************************************************************************
Jun 03 12:48:25 mops197.example.com sue_boot[1003]: * These updates may take a considerable amount of time. Please do _not_ *
Jun 03 12:48:25 mops197.example.com sue_boot[1003]: * interrupt them in any way, or you _will_ damage the operating system. *
Jun 03 12:48:25 mops197.example.com sue_boot[1003]: *************************************************************************
Jun 03 12:48:25 mops197.example.com sue_boot[1003]:
Jun 03 12:48:26 mops197.example.com platform-python[1085]: ansible-vamos_init_vars Invoked with path=/etc/ansible/facts.d/vamos.fact configsrv_url=https://configsrv.example.com/cgi-bin/vamosw/mydata-json
Jun 03 12:48:27 mops197.example.com sue_boot[1003]: Starting sue-ng.run...
Jun 03 12:48:27 mops197.example.com sue_boot[1069]: localhost | CHANGED => {
Jun 03 12:48:27 mops197.example.com sue_boot[1069]: "changed": true
Jun 03 12:48:27 mops197.example.com sue_boot[1069]: }
Jun 03 12:48:28 mops197.example.com platform-python[1108]: ansible-vamos_init_play Invoked with checkout_path=/var/cache/sue-ng/checkout.yml playbook_path=/var/cache/sue-ng/playbook.yml gitrepo=https://repo-proxy.example.com/ansible-role/
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: localhost | SUCCESS => {
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "changed": false,
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "checkout_changed": false,
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "playbook_changed": false,
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "roles": [
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "aaru-ng",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "linux-settings",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "nftables",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "kerberos-client",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "autofs",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "rsyslog",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "account-info",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "sssd",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "authselect",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "etc-hosts",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "openssh",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "arcx-client",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "fluentbit",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "cvmfs-client",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "flatpak",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "htcondor",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "motd",
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: "network-config"
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: ]
Jun 03 12:48:28 mops197.example.com sue_boot[1092]: }
Jun 03 12:48:28 mops197.example.com sue_boot[1113]: PLAY [localhost] ***************************************************************
Jun 03 12:48:28 mops197.example.com sue_boot[1113]: TASK [Gathering Facts] *********************************************************
Jun 03 12:48:28 mops197.example.com platform-python[1129]: ansible-ansible.legacy.setup Invoked with gather_subset=['all'] gather_timeout=10 filter=[] fact_path=/etc/ansible/facts.d
Jun 03 12:48:29 mops197.example.com sue_boot[1113]: ok: [localhost]
Jun 03 12:48:29 mops197.example.com sue_boot[1113]: TASK [checkout roles] **********************************************************
Jun 03 12:48:29 mops197.example.com platform-python[1195]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/aaru-ng.git dest=./roles/aaru-ng depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:30 mops197.example.com platform-python[1240]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/linux-settings.git dest=./roles/linux-settings depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:31 mops197.example.com platform-python[1284]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/nftables.git dest=./roles/nftables depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:31 mops197.example.com platform-python[1328]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/kerberos-client.git dest=./roles/kerberos-client depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:32 mops197.example.com platform-python[1372]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/autofs.git dest=./roles/autofs depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:32 mops197.example.com platform-python[1416]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/rsyslog.git dest=./roles/rsyslog depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:33 mops197.example.com platform-python[1460]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/account-info.git dest=./roles/account-info depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:34 mops197.example.com platform-python[1504]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/sssd.git dest=./roles/sssd depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:34 mops197.example.com platform-python[1548]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/authselect.git dest=./roles/authselect depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:35 mops197.example.com platform-python[1592]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/etc-hosts.git dest=./roles/etc-hosts depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:35 mops197.example.com platform-python[1636]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/openssh.git dest=./roles/openssh depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:36 mops197.example.com platform-python[1680]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/arcx-client.git dest=./roles/arcx-client depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:37 mops197.example.com platform-python[1724]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/fluentbit.git dest=./roles/fluentbit depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:37 mops197.example.com platform-python[1768]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/cvmfs-client.git dest=./roles/cvmfs-client depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:38 mops197.example.com platform-python[1813]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/flatpak.git dest=./roles/flatpak depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:38 mops197.example.com platform-python[1857]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/htcondor.git dest=./roles/htcondor depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:39 mops197.example.com platform-python[1901]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/motd.git dest=./roles/motd depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:40 mops197.example.com platform-python[1945]: ansible-git Invoked with repo=https://repo-proxy.example.com/ansible-role/network-config.git dest=./roles/network-config depth=1 version=master remote=origin force=False clone=True update=True verify_commit=False gpg_whitelist=[] accept_hostkey=False accept_newhostkey=False bare=False recursive=True single_branch=False track_submodules=False refspec=None reference=None key_file=None ssh_opts=None executable=None umask=None archive=None archive_prefix=None separate_git_dir=None
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'aaru-ng', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'linux-settings', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'nftables', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'kerberos-client', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'autofs', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'rsyslog', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'account-info', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'sssd', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'authselect', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'etc-hosts', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'openssh', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'arcx-client', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'fluentbit', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'cvmfs-client', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'flatpak', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'htcondor', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'motd', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: ok: [localhost] => (item={'key': 'network-config', 'value': 'master'})
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: PLAY RECAP *********************************************************************
Jun 03 12:48:40 mops197.example.com sue_boot[1113]: localhost : ok=2 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
Jun 03 12:48:40 mops197.example.com sudo[1980]: root : PWD=/ ; USER=root ; COMMAND=/bin/ansible-playbook -i /var/cache/sue-ng/localhost.ini -e SUENG_MODE=boot /var/cache/sue-ng/playbook.yml --skip-tags=noauto
Jun 03 12:48:40 mops197.example.com sudo[1980]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
Jun 03 12:49:24 mops197.example.com sue-ng[4653]: finished (mode: boot)
Jun 03 12:49:24 mops197.example.com user[4654]: sue.run: finished (boot)...
Jun 03 12:49:24 mops197.example.com systemd[1]: Finished sue_boot: Example Comp. System Maintenance.
Jun 03 12:49:24 mops197.example.com systemd[1]: Started sue_done: Isolate the Default Target.
[mops197] /root # systemd-analyze critical-chain sue_boot.service
The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.
sue_boot.service +1min 3.028s
└─postfix.service @2.371s +362ms
└─network.target @2.353s
└─NetworkManager.service @2.048s +303ms
└─basic.target @2.038s
└─dbus-broker.service @2.005s +30ms
└─dbus.socket @1.989s
└─sysinit.target @1.980s
└─systemd-resolved.service @1.901s +76ms
└─systemd-tmpfiles-setup.service @1.627s +258ms
└─import-state.service @1.588s +26ms
└─local-fs.target @1.572s
└─run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount @2.453s
└─local-fs-pre.target @520ms
└─systemd-tmpfiles-setup-dev.service @490ms +28ms
└─kmod-static-nodes.service @411ms +48ms
└─systemd-journald.socket
└─system.slice
└─-.slice
The interesting thing is, that the same setup doesn’t cause the 1 minute delay on Alma Linux 10.2. The sue_boot.service is exactly the same as on Alma Linux 9.