You'd have to write your own script for autorestarting it.
Just do a while loop and check fi the process is still running, if not restart it, kind of thing.
And it already runs on linux, so what exactly do you mean by "as linux service"?
Since you have control panel already installed (cPanel/Kloxo), it would be great if hercules would also autostart with mysql, apache components.i think he wants it like same with: httpd, iptables, mysql so he can start it easier during boot
@TS you can do that by making a crontab.
root (very bad for you) <~~ that force Hercules to run as root? Any other work around for that?1. Add athena-start to /etc/init.d. Rename as hercules. Adjust $PATH variable inside to point to the location of hercules. Ex: ~/home/user/hercules or /var/hercules
2. # chkconfig -add hercules
3. Reboot
4. ???
5. Profit. You can now use service hercules start provided your user account has the ability to start the service (it should). You shouldn't have to or just plain shouldn't sudo this command, as effectively that makes your server start as root (very bad for you).
Sorry did not saw your post. Will try that and post my experience with that tut.This is a pretty decent tutorial on how to do about it: http://www.shayanderson.com/linux/add-startup-script-or-service-with-linux-on-bootup.htm
Create a new user, assign the files inside the hercules directory to that specific user. Alternatively you can create a new user, create a new group, add the user to that group and change the group of the hercules directory.root (very bad for you) <~~ that force Hercules to run as root? Any other work around for that?1. Add athena-start to /etc/init.d. Rename as hercules. Adjust $PATH variable inside to point to the location of hercules. Ex: ~/home/user/hercules or /var/hercules
2. # chkconfig -add hercules
3. Reboot
4. ???
5. Profit. You can now use service hercules start provided your user account has the ability to start the service (it should). You shouldn't have to or just plain shouldn't sudo this command, as effectively that makes your server start as root (very bad for you).
yes, that's why maybe I better ask:running service hercules start would make hercules start AS whatever user you're logged into as you run the command. if you sudo the service start then you've effectively started hercules as root (read: don't do that).
Yes, but I thought they told me that doing that would make Hercules run as root? LOL.I think he's saying that Hercules should be started on server's machine boot, the same way it happens with Apache, MySQL, SSH and other services.
We use essential cookies to make this site work, and optional cookies to enhance your experience.