Re: (solved) Re: How to chain services driven by a timer?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 17, 2024 at 2:49 PM Brian Reichert <reichert@xxxxxxxxxxx> wrote:
>
>   [Service]
>   Type=simple
>
>   ExecStart=/usr/local/sbin/post-logrotate

I assume that this is just a script that does some post-processing on
log files. In that case, I suggest that you use Type=oneshot with
RemainAfterExit=no (the default). Then the service will actually wait
until your script completes. Type=simple is expected to be used for a
service that doesn't exit under normal conditions.

--
Dan




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux