Open smalenfant opened 8 months ago
t3c
Installed Cache Config on Rocky LInux 9 and it won't detect systemd as the service management.
Cache config to enable traffic server service
After rebooting the server after the initial install, cache config did not enable Traffic Server.
I could see the following in the log: OS checks are enabled and unable to find any know service management tools.
OS checks are enabled and unable to find any know service management tools.
The command used by t3c is the following and it works just fine when used manually.
# /bin/sh -c "/bin/systemctl --version" systemd 252 (252-14.el9_2.3.0.1) +PAM +AUDIT +SELINUX -APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS -FIDO2 +IDN2 -IDN -IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified
I believe I found the problem.
RHEL9 doesn't come with /sbin/chkconfig. But the code is not handling this right. Will always be Unknown.
/sbin/chkconfig
https://github.com/apache/trafficcontrol/blob/2eb00e0cfd8e83ee77ea6016ceaaa272538d55a3/cache-config/t3c-apply/config/config.go#L677-L691
I'm not sure why this is not a different conditional.
This Bug Report affects these Traffic Control components:
t3c
, formerly ORT)What did you do?
Installed Cache Config on Rocky LInux 9 and it won't detect systemd as the service management.
What did you expect to happen?
Cache config to enable traffic server service
What actually happened?
After rebooting the server after the initial install, cache config did not enable Traffic Server.
I could see the following in the log:
OS checks are enabled and unable to find any know service management tools.
Notes
The command used by t3c is the following and it works just fine when used manually.