Solution For Troubleshooting Init.d Scripts

In this user guide, we will learn about some of the potential causes that can lead to troubleshooting init.d scripts and then discuss possible approaches to resolve this issue.

Recommended: ASR Pro

  • Step 1: Download and install ASR Pro
  • Step 2: Launch the program and select the system you want to scan
  • Step 3: Click on the Scan button and wait for the process to finish
  • Speed up your computer today by downloading the software here.

    You Can Find 10 More Interesting Topics

    1. Shell Programming And Scripting

    Hello everyone!I am trying to create a startup script which is gr8 at the end where we can explain very well what the next field process is and how I can test this situation for my script.DAEMON_PATH = “/ home / wes / Development / projects / myapp”DAEMON = my applicationDAEMONOPTS = “- my parameters”NAME = my applicationDESC = “Description of my daemon” … (4 answers)

    Start of discussion: Kartik N.

    2. Shell And Programming Scripts

    Hello everyone!I repeated and pasted in /etc/init.d/skeleton to create a new one so that I can create my own init script to get the program.Basically, the ONLY change I made was to skeletonize the “model” terribly far away, find it, and replace “FOO” with “snort”.* NOTE: I know there are several snort init scripts for you … (6 answers)

    Started a discussion: mrm5102

    3. UNIX For Power Users

    I am currently investigating Solaris Boot Disease (S10) with a script, configTypical for use in /etc/rc3.d. It was written to handle the trace information in the log file using a tee, but often the file itself is not explicitly updated. Of course, there is a standard stdout / stderr location for startup scripts where another branch with … answers)

    Discussion (6 starts: JerryHone

    4. Red Hat

    Hi folks, I hope I got your most important advice, I’m sick of this idea …I have 3 scripts:, coupled with was in /etc/ and hence intend to start part of my system with a utility command, which could be may causestart service will definitely call … (4 answers)

    Discussion: Updated

    5. Red Hat

    I ran into a problem after one of our database servers.Operating system: CentOS 5.5 finalKernel: 2.6.18-238.5.1.el5.028stab085.2 (kernel released by OpenVZ)We start the process for the database instances using the database start / stop scripts (“/db2/admin/scripts_dba/start_services.ksh” and “… / stop_services.ksh”). (Database … (1 answer)

    Start of discussion: Bakunin

    6. UNIX For Advanced And Advancedexperienced Users

    Hello!I got a very strange experience on my SUNFIRE machine running Solaris 9 operating system.When I shutdown a particular machine with init To 0, to do it quickly, it shuts down and then restarts, as it does with init 6. I checked the same rc.scripts used with init 0 and compared them with radio controllers … (2 answers)

    Discussion has begun, Yentan

    7 On:. Linux

    Dear Sir or Madam,I entered init 1 into my Redhat window theme as root versus Wikipedia ( In single user mode, it will most likely not configure network interfaces, run daemons, or allow non-root logins.So now I can’t connect to it again. How do I reset the initialization change on path to 3? … (8 answers)

    Start Discussion: z1dane

    8. Shell Programming And Scripting

    Some codesAfter executing some pieces of code, manipulations do not go to rvin_doxx_scrt .. and the illegal program endsrvin_doxx_scrt ()Some codesif (catfish code)… o veta)

    Discussion (4 started: ultimatix

    9. UNIX From The Point Of View Of Advanced And Experienced Users

    Hello expert!I suggest some problems with my SUN system. Whenever I execute #init 6 OR #init 0, I log out and suggest logging back in instead of restarting the device when init 6 starts and shutting down the system when init 0 starts to start.I just restart the system with the system …. which … is responsible)

    Chat (6 just started with: sc2005

    10. Shell Programming And Scripting

    I’m new to Unix (Sun OS) scripting using Ksh and trying to help debug my own script a bit. When I run it, I get a “this kind of unexpected” error related to the setYear function. When I check the setYear function, I usually get a “contingency” error in the sendEmails function. This is letting me down … (8 answers)

    Discussion Started by mharley


    I have this script in /etc/init.d and I want to know if it starts on every system reboot. Is there a way to “simulate” the reboot conditions to see if the script is actually being invoked (and debugged) without rebooting the system, and in fact?

    troubleshooting init.d scripts

    Note why I know you can only run the script for debugging purposes. My goal is to fix special cases where the script is manually started, it won’t start even if the system starts / reboots for some selected reasons (like some startup conditions with a different script, ideas with permissions, etc.).

    Maybe it has to do with runlevels? Because I don’t know her like that in the morning.

    Recommended: ASR Pro

    ASR Pro is a revolutionary piece of software that helps you fix a variety of Windows problems with just the click of a button. It's easy to use, and it can help you get your computer back up and running in no time. So don't suffer from Windows problems any longer - ASR Pro can help!

  • Step 1: Download and install ASR Pro
  • Step 2: Launch the program and select the system you want to scan
  • Step 3: Click on the Scan button and wait for the process to finish

  • requested Mar 20 ’16 at 04:16 PM

    name = “tab-top”>

    Not The Answer Thatyou Are Looking For? Browse Other Questions Tagged Ubuntu Troubleshoot Ubuntu Init.d Also Ask Your Question.

    Difference in environment is a common problem. If the package does not affect the first row, layer differences can be a problem.

    The most common problem I face from experts is path expectations. The init.d languages ​​work in a limited direction.

    These are the same cron stumbling blocks as scripts. I believe that the environment along the path is generally the same, or at least somewhat similar. Try running cron the heavy lifting as root that cleans up your environment. About us:

      echo PATH = $ PATHechoecho ENVIRONMENTapproximatelyechoDefine echo variablesadjust 

    troubleshooting init.d scripts

    Then run / bin / sh Shot and remove its environment to activate the cron job environment before starting the init job. You should be able to create a setup startup and very / bin / sh script.

    answered March 28, 2016 at 11:26 am

    Bill Thor BillThor


    While this can be a particularly ugly way to debug, users might actually try to let someone inactive in the service runlevel see how the script would behave if called during initialization.

    Example. Usually runlevel 4 is rarely used (but check your system). Then you can move the rc3.d symlink folder to rc4. copy (to indicate that levels 3 and 4 have the same services) and enable your support for level 4. Then, by running 4 telinit, you can simulate running your script. This uses init to changea lower runlevel, which can be nearly the same if it connects the reboot to the runlevel before the manufacturer reboot.

    Please note that this answer from @BillThor rightly points out important issues and perhaps mentions a better way to debug your actual script than running it every time, as you will see your services restarting almost every time.

    answered Mar 28, 2016 at 10:17 pm

    Speed up your computer today by downloading the software here.

    Init.d 스크립트 문제 해결을 위한 솔루션
    Решение для устранения неполадок скриптов Init.d
    Rozwiązanie Rozwiązywania Problemów Ze Skryptami Init.d
    Solución Para Solucionar Problemas De Scripts Init.d
    Solution De Dépannage Des Scripts Init.d
    Lösung Zur Fehlerbehebung Bei Init.d-Skripten
    Solução Para Solucionar Problemas De Scripts Init.d
    Oplossing Voor Het Oplossen Van Problemen Met Init.d-scripts
    Soluzione Per La Risoluzione Dei Problemi Degli Script Init.d
    Lösning För Felsökning Av Init.d-skript