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 does nothing then prevent systemd kills the
> whole service bfore that timeout is reached at shutdown
> whole service bfore that timeout is reached at shutdown
You mean at shutdown this timeout is ignored?
Regards,
Ralf
Gesendet: Sonntag, 02. September 2018 um 16:17 Uhr
Von: "Reindl Harald" <h.reindl@xxxxxxxxxxxxx>
An: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Betreff: Re: blocking service on shutdown
Von: "Reindl Harald" <h.reindl@xxxxxxxxxxxxx>
An: systemd-devel@xxxxxxxxxxxxxxxxxxxxx
Betreff: Re: blocking service on shutdown
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=true
> ExecStop=/usr/local/bin/wait_borg
> TimeoutStopSec=600
> [Install]
> WantedBy=multi-user.target
>
> I'm using ubuntu 18.04, systemd 237
>
> Manually stopping the service via
> systemctl stop borg_wrapper
> does wait and thus works.
>
> But its not working on normal shutdown/poweroff ...
> From the logs I can't even see an entry with
> "Stopping borg shutdown wait" in syslog.
>
> Does anyone has an idea?
what exactly does "/usr/local/bin/wait_borg"?
why are the no dependecnies to the services it waits for?
"TimeoutStopSec=600" alone does nothing then prevent systemd kills the
whole service bfore that timeout is reached at shutdown
_______________________________________________
systemd-devel mailing list
systemd-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/systemd-devel
_______________________________________________ systemd-devel mailing list systemd-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/systemd-devel