An open API service indexing awesome lists of open source software.

https://github.com/joelstephen97/shell-automation-linux

Script and information to automate task on Linux and attach to run on launch
https://github.com/joelstephen97/shell-automation-linux

shell shell-script shell-scripting

Last synced: about 1 year ago
JSON representation

Script and information to automate task on Linux and attach to run on launch

Awesome Lists containing this project

README

          

# shell-automation-linux

1. Useful for personal automation on maybe useful for automation on Linux based EC2 instances
2. Rename fields in .sh file according to your usage

## STEPS:

If you have some arbitrary **bash(.sh)** file in **home/user/somefile/run.sh**
Then follow these steps to make sure this bash script is always run on startup.

1. cd into **etc/systemd/system/**
2. **sudo nano name.service**
3. Reload the systemd daemon to recognize the new service: **sudo systemctl daemon-reload**
4. Start Service: **sudo systemctl start name**
5. Enable the service to start automatically on system boot: **sudo systemctl enable name**
6. Check: **sudo systemctl status name**