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
- Host: GitHub
- URL: https://github.com/joelstephen97/shell-automation-linux
- Owner: joelstephen97
- Created: 2024-10-31T14:31:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-31T14:36:10.000Z (over 1 year ago)
- Last Synced: 2025-02-12T22:18:10.307Z (over 1 year ago)
- Topics: shell, shell-script, shell-scripting
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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**