Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aldy505/system-restart
Restart sshd service when network goes down until it goes back up again
https://github.com/aldy505/system-restart
Last synced: 17 days ago
JSON representation
Restart sshd service when network goes down until it goes back up again
- Host: GitHub
- URL: https://github.com/aldy505/system-restart
- Owner: aldy505
- License: unlicense
- Created: 2022-11-25T03:19:45.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T12:58:39.000Z (9 months ago)
- Last Synced: 2024-10-12T16:12:50.897Z (about 1 month ago)
- Language: Shell
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
I hate it when my SSH service goes down because the network interface was malfunctioning.
To avoid me doing VNC and all the hassle, I made this simple stupid bash script to keep
restart everything that I wanted.Copy `system-restart` to `$PATH`, do `chmod +x system-restart`.
And use it: `system-restart sshd 0.0.0.0:22`.
It will execute `ss -tlpn` and `grep '0.0.0.0:22'`, if it's empty, it will restart `sshd` service.
[Unlicensed](./LICENSE)