From 53a8080be30553ecbd9262d721c9d3374b8e48e5 Mon Sep 17 00:00:00 2001 From: Vitaly Kuznetsov Date: Thu, 3 Jun 2021 12:48:02 +0200 Subject: [PATCH] Install systemd unit for 'default' OS Fedora is not in the list but uses systemd and not sysv. Signed-off-by: Vitaly Kuznetsov --- azurelinuxagent/common/osutil/default.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/azurelinuxagent/common/osutil/default.py b/azurelinuxagent/common/osutil/default.py index 066e143136d7..fcb7d9b857dd 100644 --- a/azurelinuxagent/common/osutil/default.py +++ b/azurelinuxagent/common/osutil/default.py @@ -146,7 +146,7 @@ class DefaultOSUtil(object): @staticmethod def get_systemd_unit_file_install_path(): - return "/lib/systemd/system" + return "/usr/lib/systemd/system" @staticmethod def get_agent_bin_path(): diff --git a/setup.py b/setup.py index c258e4b878cc..b2ed8f4cde36 100755 --- a/setup.py +++ b/setup.py @@ -194,7 +194,7 @@ def get_data_files(name, version, fullname): # pylint: disable=R0912 set_conf_files(data_files) set_logrotate_files(data_files) set_udev_files(data_files) - set_sysv_files(data_files) + set_systemd_files(data_files, dest=systemd_dir_path) return data_files -- 2.31.1