Find the answer to your Linux question:
Results 1 to 7 of 7
Hello, I installed heritrix-1.14.3 into my CentOS 5.4. I found out that, everytime, when I need to use heritrix, I need to run a lot of commands: export HERITRIX_HOME=/root/heritrix-1.14.3 cd ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27

    Unhappy heritrix autostartup

    Hello,
    I installed heritrix-1.14.3 into my CentOS 5.4.
    I found out that, everytime, when I need to use heritrix, I need to run a lot of commands:

    export HERITRIX_HOME=/root/heritrix-1.14.3
    cd $HERITRIX_HOME
    $HERITRIX_HOME/bin/heritrix --admin=LOGIBN:PASSWORD --port=9090

    Is there anyway to have simple autostartup of heritrix instead of typing a lot of commands.
    I am also worry abt the relaunched and refresh problem of heritrix.

    Anyone can guide me step-by-step?

    Appreciate your guidiance and answer.

    Thanks in advance,
    Allen Wilson

  2. #2
    Just Joined! NightShade03's Avatar
    Join Date
    Apr 2010
    Location
    New York
    Posts
    18
    Add you commands to a bash script

    #!/bin/bash
    #
    # chkconfig: 345 99 99
    # Description: Script to change /dev/random

    export HERITRIX_HOME=/root/heritrix-1.14.3
    cd $HERITRIX_HOME
    $HERITRIX_HOME/bin/heritrix --admin=LOGIBN:PASSWORD --port=9090
    [rest of commands here]

    Save the file and make sure that root owns it and has execute permissions:

    chown root:root: <file name>
    chmod 755 <file name>

    Copy the file to /etc/init.d/ and then add it to the chkconfig service manager.

    cp <file name> /etc/init.d
    chkconfig --add <file name>
    chkconfig <file name> on

    Reboot your system and the service will execute your file when the system starts.

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27

    Smile

    Hi,
    Thanks for the reply! Appreciate it!!
    I added the command to a bash script and named it heritrix.sh
    But, when I run:
    chown root:root:heritrix.sh
    Errors pop out..
    Then, I copied the file to /etc/init.d/ and run:
    cp <file name> /etc/init.d
    chkconfig --add <file name>
    chkconfig <file name> on
    And i reboot my PC, I found out that I not able access to the desktop.

    Can you please guide me step-by-step?
    Appreciate your guidiance and help.
    Looking forward to hear from you...

    Thanks in advance,
    Allen Wilson

  4. #4
    Just Joined! NightShade03's Avatar
    Join Date
    Apr 2010
    Location
    New York
    Posts
    18
    Quote Originally Posted by allensim81 View Post
    chown root:root:heritrix.sh
    Should be:

    chown root:root heritrix.sh


    If you can't access the desktop it sounds like the system is hanging. Boot into runlevel 3 or single user mode to disable the service:


    chkconfig heritrix off


    That should fix your desktop problem.

  5. #5
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27

    Unhappy

    Hi,
    Glad to hear from your reply.
    I tried by typing

    chkconfig heritrix.sh off

    yet it still not working, but i can access to my desktop.
    I think I almost there. Just that some seeting on my init.d. Please help me.
    Some even adviced me to put my heritrix.sh into lampp. Will this work??

    Appreicate your guidiance and advice.
    Thanks in advance,
    Allen Wilson

  6. #6
    Just Joined!
    Join Date
    Feb 2008
    Posts
    27

    Red face

    Hi NightShade03,
    Now that I add the commands to a bash script and name it heritrix.sh & locate it at /root

    #!/bin/bash
    #
    # chkconfig: 345 99 99
    # Description: Script to change /dev/random

    export HERITRIX_HOME=/root/heritrix-1.14.3
    cd $HERITRIX_HOME
    $HERITRIX_HOME/bin/heritrix --admin=LOGIBN:PASSWORD --port=9090

    Then I run the following:
    chown root:root heritrix.sh
    chmod 755 heritrix.sh
    cp heritrix.sh /etc/init.d
    chkconfig --add heritrix.sh
    chkconfig heritrix.sh off

    The heritrix still cannot auto startup. I tried to run chkconfig heritrix.sh on, BUT then it'll cause me cannot access to my desktop.

    Can you guide me on this?
    Appreciate for your guidiance.

    Thanks in advance,
    Allen

  7. #7
    Just Joined!
    Join Date
    Jul 2010
    Posts
    2
    Hi NightShade03,
    COOL!!!!! Your advice is really helpful! I am facing same heritrix startup problem too!
    I tried to put the bash script at both root and at init.d then reboot it. And it leads me to blank desktop. However , if i remove the heritrix.sh at init.d and remain it at root, it will work okay, but heritrix wont startup automatically.

    Can you please help me?
    Allen, do u have any latest way? Please help me too!

    Regards,
    hyuuga

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...