I have three terminal commands that I would like to execute when server boots up. How can I achieve this? I have seen many solutions, but none of them seems to be simple and working. Here are the referrals:
https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-run-boot.html https://www.centos.org/forums/viewtopic.php?f=47&t=48140
Here are the terminal lines which I want to execute when system starts:
root@server:
cd home/user/public_html/app/
forever -o outG.log -e errG.log start app1/game_server.js
forever -o outM.log -e errM.log start app2/main_server.js
forever -o outN.log -e errN.log start app3/node.js