| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /etc/init/ |
Upload File : |
# readahead-disable-services - readahead-disable-services
#
# disable all services, which interfere with readahead-collector
start on stopped rcS
script
set +e
. /etc/sysconfig/readahead
[ -f /dev/shm/readahead-collector-started ] || exit 0
[ -z "$READAHEAD_DELAY_SERVICES" ] && exit 0
runlevel=$(/sbin/runlevel| (read a b; echo $b))
# delay startup of services, which do not play nicely with readahead
for service in "$READAHEAD_DELAY_SERVICES"; do
if /sbin/chkconfig --level $runlevel $service ; then
echo "<6>readahead-disable-service: delaying service $service" > /dev/kmsg
/sbin/chkconfig --level $runlevel $service off
> /var/lock/subsys/delay-$runlevel-$service
fi
done
exit 0
end script