__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#! /bin/sh
### BEGIN INIT INFO
# Provides: kdump-tools
# Required-Start: $syslog $time $local_fs $remote_fs $network
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: kdump
# Description: init script to load a kdump kernel or save vmcores
### END INIT INFO
PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME="kdump-tools"
DESC="kdump-tools"
export NAME
. /lib/lsb/init-functions
. /lib/init/vars.sh
VMCORE_FILE=/proc/vmcore
KDUMP_SCRIPT=/usr/sbin/kdump-config
KDUMP_DEFAULTS=/etc/default/kdump-tools
[ -r $KDUMP_DEFAULTS ] && . $KDUMP_DEFAULTS
[ "$USE_KDUMP" -ne 0 ] || exit 0;
case "$1" in
start)
#
# If we have a /proc/vmcore, then we just kdump'ed
#
if [ -e $VMCORE_FILE ] && [ -s $VMCORE_FILE ]; then
printf "Starting %s: " "$DESC"
if ! $KDUMP_SCRIPT savecore && [ -n "$KDUMP_FAIL_CMD" ] ; then
$KDUMP_FAIL_CMD ;
else
date -R ;
reboot -f ;
fi
#
# Else, we've just booted and need to load the kdump kernel
#
else
printf "Starting %s: " "$DESC"
$KDUMP_SCRIPT load
fi
;;
stop)
printf "Stopping %s: " "$DESC"
$KDUMP_SCRIPT unload
;;
status)
$KDUMP_SCRIPT status
;;
restart|force-reload)
# alias the required 'force-reload' option
$KDUMP_SCRIPT unload
$KDUMP_SCRIPT load
;;
*)
echo "Usage: $0 {start|stop|status|restart|force-reload}"
exit 1
esac
exit 0
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| K01apache-htcacheclean | File | 2.43 KB | 0755 |
|
| K01speech-dispatcher | File | 1.99 KB | 0755 |
|
| S01anacron | File | 2.01 KB | 0755 |
|
| S01apache2 | File | 7.95 KB | 0755 |
|
| S01apport | File | 2.22 KB | 0755 |
|
| S01bluetooth | File | 2.88 KB | 0755 |
|
| S01console-setup.sh | File | 1.21 KB | 0755 |
|
| S01cron | File | 3.03 KB | 0755 |
|
| S01cups | File | 2.74 KB | 0755 |
|
| S01dbus | File | 3.08 KB | 0755 |
|
| S01gdm3 | File | 2.96 KB | 0755 |
|
| S01grub-common | File | 985 B | 0755 |
|
| S01kdump-tools | File | 1.33 KB | 0755 |
|
| S01openvpn | File | 8.92 KB | 0755 |
|
| S01plymouth | File | 1.35 KB | 0755 |
|
| S01rsync | File | 4.31 KB | 0755 |
|
| S01saned | File | 2.17 KB | 0755 |
|
| S01spice-vdagent | File | 2.43 KB | 0755 |
|
| S01ssh | File | 3.96 KB | 0755 |
|
| S01sssd | File | 2.5 KB | 0755 |
|
| S01sysstat | File | 1.55 KB | 0755 |
|
| S01unattended-upgrades | File | 1.36 KB | 0755 |
|
| S01uuidd | File | 1.48 KB | 0755 |
|
| S01vsftpd | File | 2.05 KB | 0755 |
|
| S01whoopsie | File | 485 B | 0755 |
|