naidu / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

How to run hw-daemon.rb on startup/boot? #384

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to be able to run hw-daemon.rb automatically on system 
startup/boot (like an init.d script or something), instead of having to type 
"ruby utils/hw-daemon.rb start" everytime i reboot.

Any help on this would be appreciated.

Server OS: Debian 6.0 Squeeze x64
Browser: Firefox 8.0.1

Original issue reported on code.google.com by rduarte...@gmail.com on 19 Dec 2011 at 2:59

GoogleCodeExporter commented 9 years ago
Insert into yours /etc/rc.local -> /usr/bin/ruby 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb start

Original comment by anton.ka...@gmail.com on 25 Jan 2012 at 9:03

GoogleCodeExporter commented 9 years ago
Here's an init script I wrote to do that. This is for CentOS 6.2. Put it in 
/etc/init.d and use 'chkconfig --add <scriptname>' to add it.

Original comment by rie...@squishypuppy.com on 24 Feb 2012 at 7:57

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 13 Mar 2012 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 1 May 2012 at 9:26