If I open a terminal and run this in the terminal: source /home/deploy/script.sh
It will execute script.sh
command below is what i wrote in script.sh
cd /var/www/applikasi-siao/iClockServer && thin -e production -p 2345 -P tmp/pids/thin.pid -l logs/thin/log start
this command above must run in the same terminal and the terminal should stay open.
I created script.sh
so when i open terminal and type source /home/deploy/script.sh
it will run
cd /var/www/applikasi-siao/iClockServer && thin -e production -p 2345 -P tmp/pids/thin.pid -l logs/thin/log start
I need all of this processes run automatically every reboot without manually opening a terminal and typing source /home/deploy/script.sh
it started new terminal everyboot but it said thin command is not found, how can i change directory to /var/www/applikasi-siao/iClockServer before starting the thin - e bla bla bla
– Dimitri Guggenheim May 05 '17 at 05:57