![]() ![]() |
Dec 2 2003, 05:57 AM
Post
#1
|
|
|
Computer Chip ![]() ![]() ![]() Group: Members Posts: 407 Joined: 29-April 03 Member No.: 7,368 |
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 -------------------- Jeewhizz
PHP Guru :) hm. I've lost a machine.. literally _lost_. it responds to ping, it works completely, I just can't figure out where in my apartment it is! :) |
|
|
|
Dec 2 2003, 11:57 AM
Post
#2
|
|
|
Fellow ![]() ![]() Group: Members Posts: 114 Joined: 11-May 02 Member No.: 2,129 |
Put the command in /etc/rc.d/rc.local. It will then run every time your server boots up, after all services are started.
-------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 22nd November 2009 - 01:47 AM |