Make scripts to make your life easier!
This will create the folder for you to store your scrips in.
- Open terminal
- sudo mkdir /scripts
- chmod 770 /scripts
- chown root:nodeadmin /scripts
Create scripts
Scripts are easy to create with nano. They are just the same one line command you would usually run.
- cd /scripts
- nano l1.sh (This will leave and stop L1. Stop means the JAVA process will be stopped)
Your script should contain two lines (two separate commands)