Hi there, I've installed a cod4 server on my Debian Linux box. The question I'm asking is how do I run the startup script "/home/username/cod4/start.sh" automatically if the virtual private server is to restart unexpectedly?
Note: All start.sh simply does is start cod4_lnxded with the correct parameters.
Thank you
[Debian] If VPS Restarts, start cod4_lnxded automatically
-
Intrepid
- New to forums

- Posts: 1
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Tue Mar 04, 2014 10:39 am
- Vanderburg
- Former staff

- Posts: 1253
- Joined: Sat Nov 13, 2010 7:27 am
- Location: Dallas, TX
Re: [Debian] If VPS Restarts, start cod4_lnxded automaticall
There are a few options you can use to run it as a service. You also could consider setting up a cronjob, using the @reboot time, or by adding a script to /etc/inid.d