Am 03.09.18 um 00:04 schrieb Amit Saha:
>
> I had to achieve something similar a while back and this is how I ended
> up doing:
>
> https://echorand.me/doing-something-before-systemd-shuts-your-supervisord-down.html
when "ExecStop=/bin/sleep 300" is the solution if want my problems back
_
Hi Ralf,
On Sun, 2 Sep 2018 at 11:40 pm, Ralf Sieger wrote:
> Hi,
>
> I want my system to pause on shutdown to wait till my backup has finished
> if it is running.
> For this I've created this small service:
>
> [Unit]
> Description=borg shutdown wait
> [Service]
> Type=oneshot
> ExecStart=/bin/
Am 02.09.18 um 16:41 schrieb Ralf Sieger:
> Hi Harald,
>
>> what exactly does "/usr/local/bin/wait_borg"?
> Small script which terminates whn no "borg" processes exist any more.
>
>> why are the no dependecnies to the services it waits for?
> The process it waits for is not a service but a nor
2018-09-02 15:37 GMT+02:00 Ralf Sieger :
> Hi,
>
> I want my system to pause on shutdown to wait till my backup has finished if
> it is running.
I would suggest using an inhibitor lock when running your backup.
See https://www.freedesktop.org/wiki/Software/systemd/inhibit/
That's exactly the use-
Hi Harald,
> what exactly does "/usr/local/bin/wait_borg"?
Small script which terminates whn no "borg" processes exist any more.
> why are the no dependecnies to the services it waits for?
The process it waits for is not a service but a normal user program.
> "TimeoutStopSec=600" alone
Am 02.09.18 um 15:37 schrieb Ralf Sieger:
> I want my system to pause on shutdown to wait till my backup has
> finished if it is running.
> For this I've created this small service:
>
> [Unit]
> Description=borg shutdown wait
> [Service]
> Type=oneshot
> ExecStart=/bin/true
> RemainAfterExit=tr
Hi,
I want my system to pause on shutdown to wait till my backup has finished if it is running.
For this I've created this small service:
[Unit]
Description=borg shutdown wait
[Service]
Type=oneshot
ExecStart=/bin/true
RemainAfterExit=true
ExecStop=/usr/local/bin/wait_borg
TimeoutStopSe