Whamcloud - gitweb
LU-17971 gss: do not make lsvcgss record its PID 09/55509/2
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 24 Jun 2024 07:32:35 +0000 (09:32 +0200)
committerOleg Drokin <green@whamcloud.com>
Wed, 17 Jul 2024 15:22:00 +0000 (15:22 +0000)
The lsvcgssd daemon is expected to spawn a few additional threads at
startup to carry out extra work. In this case finding the PID of the
'main' thread can be complicated.
So do not try to record this by ourselves, and let systemctl handle
that.

Test-Parameters: trivial
Test-Parameters: testgroup=review-dne-selinux-ssk-part-1
Test-Parameters: testgroup=review-dne-selinux-ssk-part-2
Test-Parameters: kerberos=true testlist=sanity-krb5
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I7ddfcd5b5f3c69a46079b42d76fb9585953e30b1
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55509
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/scripts/lsvcgss_sysd
lustre/scripts/systemd/lsvcgss.service

index 810931a..3b0b5cb 100644 (file)
@@ -3,9 +3,6 @@
 # lsvcgss      Lustre GSS daemon
 #
 
-# Must be identical to what lsvcgss.service uses
-PIDFILE=/var/run/lsvcgss.pid
-
 # If service is not configured, launch with all mechs
 # -k -- Enable kerberos support
 # -s -- Enable shared key support
@@ -17,6 +14,5 @@ LSVCGSSDARGS="-k -s -z"
 
 /usr/sbin/lsvcgssd ${LSVCGSSDARGS}
 RETVAL=$?
-[ $RETVAL -eq 0 ] && echo $(pidof -s lsvcgssd) > $PIDFILE
 
 exit $RETVAL
index 09407c1..3577698 100644 (file)
@@ -7,7 +7,6 @@ After=network-online.target openibd.service rdma.service opa.service
 Type=forking
 RemainAfterExit=yes
 StandardOutput=syslog
-PIDFile=/var/run/lsvcgss.pid
 ExecStart=/usr/bin/lsvcgss_sysd
 ExecReload=/bin/kill -HUP $MAINPID