Added systemd files

This commit is contained in:
0xFEEDC0DE64
2018-05-03 09:20:50 +02:00
parent b9dcbad2f1
commit b4c1628a9e
2 changed files with 21 additions and 0 deletions

11
speedtest.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Test the internet connection speed
[Service]
Type=oneshot
ExecStart=/home/feedc0de/speedlog.sh
WorkingDirectory=/home/feedc0de
User=feedc0de
[Install]
WantedBy=speedtest.timer

10
speedtest.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Test the internet connection speed
[Timer]
OnCalendar=*:0/15
Persistent=true
Unit=speedtest.service
[Install]
WantedBy=timers.target