From a34593b9e2e09d7581be4710580be04d8eea3d95 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 1 Nov 2019 10:22:50 -0500 Subject: [PATCH] ceph-daemon: absolute path for /bin/install Signed-off-by: Sage Weil --- src/ceph-daemon | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ceph-daemon b/src/ceph-daemon index 39517b1b7f1fc..659f2522cb84f 100755 --- a/src/ceph-daemon +++ b/src/ceph-daemon @@ -626,6 +626,7 @@ def deploy_crash(fsid, uid, gid, config, keyring): subprocess.check_output(['systemctl', 'start', unit_name]) def get_unit_file(fsid, uid, gid): + install_path = find_program('install') u = """[Unit] Description=Ceph daemon for {fsid} @@ -644,7 +645,7 @@ LimitNOFILE=1048576 LimitNPROC=1048576 EnvironmentFile=-/etc/environment ExecStartPre=-{podman_path} rm ceph-{fsid}-%i -ExecStartPre=-install -d -m0770 -o {uid} -g {gid} /var/run/ceph/{fsid} +ExecStartPre=-{install_path} -d -m0770 -o {uid} -g {gid} /var/run/ceph/{fsid} ExecStart=/bin/bash {data_dir}/{fsid}/%i/cmd ExecStop=-{podman_path} stop ceph-{fsid}-%i Restart=on-failure @@ -658,6 +659,7 @@ StartLimitBurst=5 WantedBy=ceph-{fsid}.target """.format( podman_path=podman_path, + install_path=install_path, fsid=fsid, uid=uid, gid=gid, -- 2.39.5