1
0
mirror of https://gitea.blesmrt.net/mikaela/shell-things.git synced 2025-04-11 02:27:51 +02:00

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

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

@ -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