Re: [systemd-devel] How to stop service by timer

2016-09-12 Thread Tomasz Torcz
On Mon, Sep 12, 2016 at 09:13:26PM +0300, Федор Короткий wrote: > 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 >

Re: [systemd-devel] How to stop service by timer

2016-09-12 Thread Mikhail Kasimov
Hello! How does your service work from 10:00 till 18:45 -- with any interruption during this time-range, or constantly? I'm asking, because I'm not sure if RuntimeMaxSec= directive (https://www.freedesktop.org/software/systemd/man/systemd.service) is acceptable here|. | So, you start your

[systemd-devel] How to stop service by timer

2016-09-12 Thread Федор Короткий
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).