File: 02-systemd-service.diff

package info (click to toggle)
glusterfs 11.1-6
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 45,156 kB
  • sloc: ansic: 467,237; sh: 51,851; python: 12,989; makefile: 1,962; yacc: 487; lisp: 124; lex: 61; xml: 14
file content (34 lines) | stat: -rw-r--r-- 1,455 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Fix PID file location and add a generic hardening feature.
# Use another KillMode to fix #995303

diff -Naur glusterfs-9.4.orig/extras/systemd/glusterd.service.in glusterfs-9.4/extras/systemd/glusterd.service.in
--- glusterfs-9.4.orig/extras/systemd/glusterd.service.in	2021-10-04 08:12:28.733278599 +0200
+++ glusterfs-9.4/extras/systemd/glusterd.service.in	2021-10-14 14:36:54.354153401 +0200
@@ -9,12 +9,12 @@
 
 [Service]
 Type=forking
-PIDFile=@localstatedir@/run/glusterd.pid
+PIDFile=/run/glusterd.pid
 LimitNOFILE=65536
 Environment="LOG_LEVEL=INFO"
 EnvironmentFile=-@SYSCONF_DIR@/sysconfig/glusterd
 ExecStart=@prefix@/sbin/glusterd -p @localstatedir@/run/glusterd.pid  --log-level $LOG_LEVEL $GLUSTERD_OPTIONS
-KillMode=process
+KillMode=control-group
 TimeoutSec=300
 SuccessExitStatus=15
 Restart=on-abnormal
diff -Naur glusterfs-9.4.orig/extras/systemd/glustereventsd.service.in glusterfs-9.4/extras/systemd/glustereventsd.service.in
--- glusterfs-9.4.orig/extras/systemd/glustereventsd.service.in	2021-10-04 08:12:28.733278599 +0200
+++ glusterfs-9.4/extras/systemd/glustereventsd.service.in	2021-10-14 14:35:19.506642506 +0200
@@ -10,7 +10,8 @@
 ExecStart=@SBIN_DIR@/glustereventsd --pid-file @localstatedir@/run/glustereventsd.pid
 ExecReload=/bin/kill -SIGUSR2 $MAINPID
 KillMode=control-group
-PIDFile=@localstatedir@/run/glustereventsd.pid
+PIDFile=/run/glustereventsd.pid
+LimitNOFILE=65536
 
 [Install]
 WantedBy=multi-user.target