From 5e39181b6d87271c57293aa145669773b706642a Mon Sep 17 00:00:00 2001 From: Chris Hunter Date: Thu, 6 Jun 2024 01:44:12 -0400 Subject: [PATCH] LU-17899 gss: improved systemd unit file for SSK daemon Add operation ordering to lsvcgss initscript/service unit so it starts after systemd network services are running. Signed-off-by: Chris Hunter Change-Id: Iad39d01aae16732ff646383814033d6efb34af5e Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55379 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sebastien Buisson Reviewed-by: Peter Jones Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger --- lustre/scripts/systemd/lsvcgss.service | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lustre/scripts/systemd/lsvcgss.service b/lustre/scripts/systemd/lsvcgss.service index d4996ba..09407c1 100644 --- a/lustre/scripts/systemd/lsvcgss.service +++ b/lustre/scripts/systemd/lsvcgss.service @@ -1,8 +1,15 @@ [Unit] Description=Lustre GSS daemon +Requires=network-online.target +After=network-online.target openibd.service rdma.service opa.service [Service] Type=forking +RemainAfterExit=yes +StandardOutput=syslog +PIDFile=/var/run/lsvcgss.pid ExecStart=/usr/bin/lsvcgss_sysd ExecReload=/bin/kill -HUP $MAINPID -PIDFile=/var/run/lsvcgss.pid + +[Install] +WantedBy=network.target -- 1.8.3.1