diff --git a/etc/systemd/system/aliendalvik-stopper.service b/etc/systemd/system/aliendalvik-stopper.service new file mode 100644 index 00000000..67c57c91 --- /dev/null +++ b/etc/systemd/system/aliendalvik-stopper.service @@ -0,0 +1,9 @@ +[Unit] +Description=aliendalvik stopper service + +[Service] +Type=simple +ExecStart=/usr/bin/systemctl stop aliendalvik.service + +[Install] +WantedBy=aliendalvik-stopper.timer diff --git a/etc/systemd/system/aliendalvik-stopper.timer b/etc/systemd/system/aliendalvik-stopper.timer new file mode 100644 index 00000000..2ada8061 --- /dev/null +++ b/etc/systemd/system/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