30 lines
712 B
Diff
30 lines
712 B
Diff
Subject: init script patches from previous versions
|
|
Bug:
|
|
Tags: common
|
|
|
|
diff -rupN a/src/init-ceph.in b/src/init-ceph.in
|
|
--- a/src/init-ceph.in 2021-08-24 16:27:59.862944296 +0300
|
|
+++ b/src/init-ceph.in 2021-08-24 16:28:36.953889827 +0300
|
|
@@ -93,6 +93,13 @@ usage_exit() {
|
|
# config remains" state)
|
|
test -f $LIBEXECDIR/ceph_common.sh || exit 0
|
|
|
|
+# set ulmt for ulimit -c $ulmt in ceph_common.sh
|
|
+# default was ulmt="unlimited"
|
|
+ulmt="0"
|
|
+
|
|
+# change the unkillability of ceph
|
|
+echo "0" >/proc/self/oom_score_adj
|
|
+
|
|
. $LIBEXECDIR/ceph_common.sh
|
|
|
|
EXIT_STATUS=0
|
|
@@ -494,6 +501,7 @@ for name in $what; do
|
|
|
|
restart|onerestart)
|
|
$0 $options stop $name
|
|
+ sleep 5
|
|
$0 $options start $name
|
|
;;
|
|
|