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 ...
- 07-22-2010 #1Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
- 07-22-2010 #2
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.
- 07-24-2010 #3Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
- 07-25-2010 #4
- 07-27-2010 #5Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
- 07-29-2010 #6Just Joined!
- Join Date
- Feb 2008
- Posts
- 27
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
- 07-30-2010 #7Just 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


Reply With Quote
