Now I'm testing a Linux server; after the boot of the server machine I have to run these commands by SSH connection (with putty):
cd ../var/www/html/tbl/libraries/solr/bin/
sudo bash solr
./solr start -p 8984
cd ../../../../upms/libraries/solr/bin/
sudo bash solr
./solr start -p 8988
These commands must be executed every time the server boot. There is a way to do these commands not manually but automatically when the server start?
I have to do a crontab or create a bash file?
Server details: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-79-generic x86_64)
sudo bash solr
commands? – LJKims Jun 09 '17 at 13:42./solr start -p 8988
seems like the execution of the same command but now with [possibly] a port specified. It just seemed redundant. Understanding what is happening may help give better direction on how to create a daemon/init for this work. – LJKims Jun 09 '17 at 13:54sudo bash solr
that you are prompted for a port to use? Do you have to interact with this script/program? If so what do you enter when prompted? The reason I ask is because you don't want to have to [and can't] interact with the boot process so, if you have to interact with these scripts, you may not be able to automate this. – LJKims Jun 09 '17 at 14:13