https://github.com/raybb/bed-time
A simple script to turn off the internet every 2 minutes after bedtime
https://github.com/raybb/bed-time
Last synced: 3 months ago
JSON representation
A simple script to turn off the internet every 2 minutes after bedtime
- Host: GitHub
- URL: https://github.com/raybb/bed-time
- Owner: RayBB
- License: mit
- Created: 2019-01-09T02:12:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-13T03:08:57.000Z (over 6 years ago)
- Last Synced: 2025-01-24T21:35:44.278Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bed-time
A simple script to turn off the every 2 minutes after bedtimeUsually, a simple script like this wouldn't warrant a github repo. However, this is my first time setting up a script like this to run with `systemd` instead of a cron job. I wanted to document it so I could easily come back and find it.
## Installation for `systemd`
1. Update `bedtimer.sh` with the days/times you want your wifi off at and move it to where you want to store it.
2. Update `bedtimer.service` with the path to `bedtimer.sh`
3. Copy `bedtimer.service` and `bedtimer.timer` to `/etc/systemd/system` (or where ever they need to go on your system)
4. `systemctl daemon-reload` to load the files
5. `systemctl start bedtimer.service` to start the service
6. `systemctl status bedtimer.service` to see the logs of the service