[systemd-devel] How to stop service by timer

Федор Короткий dartslon at gmail.com
Mon Sep 12 18:13:26 UTC 2016


Hi,

We are trying to setup a service that runs every day from 10:00 to 18:45.

Starting is not a problem, we just used timer. But our solution for
stopping the service seems ugly. We have second service with
Type=oneshot which runs "systemctl stop first.service" at 18.45(by
using second timer).

Is there a better way to achieve this?

-- 
Fedor Korotkiy


More information about the systemd-devel mailing list