systemd: aliendalvik-stopper

This commit is contained in:
Aminda Suomalainen 2015-05-27 12:00:13 +03:00
parent bf03a22823
commit 4391fb5c19
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
[Unit]
Description=aliendalvik stopper service
[Service]
Type=simple
ExecStart=/usr/bin/systemctl stop aliendalvik.service
[Install]
WantedBy=aliendalvik-stopper.timer

View File

@ -0,0 +1,9 @@
[Unit]
Description=Stops aliendalvik hourly as I am unlikely to need it that much and it restarts automatically if Android app is started and just wasttes battery.
[Timer]
OnBootSec=1min
OnUnitActiveSec=1h
[Install]
WantedBy=timers.target