How to make a program run background when startup with rc
I have a VPS for torrent. I'm using deluge web. I can bind it run background manualy like this:
But I have a crontab to refresh my VPS by reset it each 2 days. Because my vps dont have enough ram.And every time my vps restart I have to start deluge manual so. I thinks I need to write bash for this. But I dont know how to.
I know how to write a bash in start up
sudo mv /filename /etc/init.d/
sudo chmod +x /etc/init.d/filename
sudo update-rc.d /etc/init.d/filename defaults
but I dont know how to call "crtl-z" with bash.
Please help me!
Last edited by gbao256; 12-18-2012 at 07:16 AM.