mcst-linux-kernel/patches-2024.06.26/slurm-llnl-20.11.4/0001-Using-function-loadpro...

44 lines
937 B
Diff

Subject: normal work
Bug:
Tags: common
--- /etc/init.d.slurm.in 2019-12-20 23:43:45.000000000 +0300
+++ /etc/init.d.slurm.in 2020-04-20 19:12:02.840121908 +0300
@@ -44,7 +44,7 @@
fi
. /etc/rc.d/init.d/functions
SUSE=0
- STARTPROC=daemon
+ STARTPROC=loadproc
function rc_status() {
RETVAL=$?
@@ -102,7 +102,7 @@
stop() {
echo -n "stopping $1: "
- killproc $1 -TERM
+ killproc $1
rc_status -v
echo
rm -f /var/lock/subsys/slurm
--- /etc/init.d.slurmdbd.in 2019-12-20 23:43:45.000000000 +0300
+++ /etc/init.d.slurmdbd.in 2020-04-20 19:13:16.341641238 +0300
@@ -39,7 +39,7 @@
fi
. /etc/rc.d/init.d/functions
SUSE=0
- STARTPROC=daemon
+ STARTPROC=loadproc
function rc_status() {
RETVAL=$?
@@ -85,7 +85,7 @@
stop() {
echo -n "stopping $1: "
- killproc $1 -TERM
+ killproc $1
rc_status -v
echo
rm -f /var/lock/subsys/slurmdbd