Help - Search - Members - Calendar
Full Version: Starting up a script
The Planet Forums > Control Panels > cPanel/WHM
Jeewhizz
How can i set a script to run on startup? the line i run via shell is

sudo -u USERNAME /home/username/dir/file

I need to run that each time i start the server.

Jee
sloop
Put the command in /etc/rc.d/rc.local. It will then run every time your server boots up, after all services are started.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.