Occasionally (it's pretty rare) my VPS provider has to reboot my VPS in order to fix issues or apply a patch. Is there any way to run commands as my user automatically once the VPS reboots? I've read about putting scripts in
/etc/rc.local but my understanding is that those scripts will be run as root. In particular I would like to run the following commands:
screen -U -S Irssi irssi screen -S rtorrent rtorrent
This way Irssi will automatically reconnect to its IRC servers and rtorrent will begin seeding again so that they don't have to wait for me to see the email from my VPS provider, login, and restart them manually. Any advice would be much appreciated!