Initial Commit

This commit is contained in:
Erik Foris 2022-07-04 17:14:30 +02:00
parent 48ecc90533
commit e41a3705a7
2 changed files with 11 additions and 0 deletions

8
autoPowerup.service Normal file
View File

@ -0,0 +1,8 @@
[Unit]
Description=Powers off the server when no tasks running
[Service]
ExecStart=/usr/local/bin/set-wakeup
[Install]
WantedBy=multi-user.target

3
set-wakeup Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
rtcwake -m no -t$(date -d sunday03:58 +%s);
exit 0;