Upload etc/init.d/procps with huggingface_hub
Browse files- etc/init.d/procps +34 -0
etc/init.d/procps
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#! /bin/sh
|
| 2 |
+
# kFreeBSD do not accept scripts as interpreters, using #!/bin/sh and sourcing.
|
| 3 |
+
if [ true != "$INIT_D_SCRIPT_SOURCED" ] ; then
|
| 4 |
+
set "$0" "$@"; INIT_D_SCRIPT_SOURCED=true . /lib/init/init-d-script
|
| 5 |
+
fi
|
| 6 |
+
### BEGIN INIT INFO
|
| 7 |
+
# Provides: procps
|
| 8 |
+
# Required-Start: mountkernfs $local_fs
|
| 9 |
+
# Required-Stop:
|
| 10 |
+
# Should-Start: udev module-init-tools
|
| 11 |
+
# X-Start-Before: $network
|
| 12 |
+
# Default-Start: S
|
| 13 |
+
# Default-Stop:
|
| 14 |
+
# Short-Description: Configure kernel parameters at boottime
|
| 15 |
+
# Description: Loads kernel parameters that are specified in /etc/sysctl.conf
|
| 16 |
+
### END INIT INFO
|
| 17 |
+
#
|
| 18 |
+
# written by Elrond <[email protected]>
|
| 19 |
+
|
| 20 |
+
DESC="Setting kernel variables"
|
| 21 |
+
DAEMON=/sbin/sysctl
|
| 22 |
+
PIDFILE=none
|
| 23 |
+
|
| 24 |
+
# Comment this out for sysctl to print every item changed
|
| 25 |
+
QUIET_SYSCTL="-q"
|
| 26 |
+
|
| 27 |
+
do_start_cmd() {
|
| 28 |
+
STATUS=0
|
| 29 |
+
$DAEMON $QUIET_SYSCTL --system || STATUS=$?
|
| 30 |
+
return $STATUS
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
do_stop() { return 0; }
|
| 34 |
+
do_status() { return 0; }
|