I have centos 6.4 machine. I created my own script using /etc/init.d/ . Below is the snippet which I took from the net and tried it. The problem now I notice which loading my os when this is loaded it start to work and it can't move to load all the whole os any more. What can I do as I can't access the system now.#!/bin/bash# chkconfig: 2345 95 05# myapp daemon# description: myapp daemon# processname: myappDAEMON_PATH=/usr/local/bin/DAEMON=myap1.c#DAEMONOPTS=-my optsNAME=myap1.cDESC=my packet capturePIDFILE=/var/run/$NAME.pidSCRIPTNAME=/etc/init.d/$NAMEcase $1 instart)    printf %-50s Starting $NAME...    insmod /usr/local/pfring/kernel/pf_ring.ko    /usr/local/bin/myap1.c    #cd $DAEMON_PATH    #PID=`$DAEMON > /dev/null 2>&1 & echo $!`    #echo Saving PID $PID  to  $PIDFILE    #    if [ -z $PID ]; then    #        printf %s\n Fail    #    else    #        echo $PID > $PIDFILE    #        printf %s\n Ok    #    fi;;status)        printf %-50s Checking $NAME...        if [ -f $PIDFILE ]; then            PID=`cat $PIDFILE`            if [ -z `ps axf | grep ${PID} | grep -v grep` ]; then                printf %s\n Process dead but pidfile exists            else                echo Running            fi        else            printf %s\n Service not running        fi;;stop)        printf %-50s Stopping $NAME            PID=`cat $PIDFILE`            cd $DAEMON_PATH        if [ -f $PIDFILE ]; then            kill -HUP $PID            printf %s\n Ok            rm -f $PIDFILE        else            printf %s\n pidfile not found        fi;;restart)    $0 stop    $0 start ;;*)        echo Usage: $0 {status|start|stop|restart}        exit 1esac
/etc/init.d/ script starts during loads and crash the system
centos;init script
According to this line# chkconfig: 2345 95 05in your script, you should be able to boot the system into  single user mode and then to disable automatic startup of the script (script is enabled in runlevels 2345 by default).How to boot it in single user mode?At the GRUB splash screen at boot time, press any key to enter the GRUB interactive menu.Select Red Hat Enterprise Linux with the version of the kernel that you wish to boot and type a to append the line.Go to the end of the line and type single as a separate word (press the Spacebar and then type single). Press Enter to exit edit mode.