mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
720c618397
Previously, path units would remain in the running state while their target unit is deactivating. This left a window of time where the target unit is no longer operational (i.e. it is busy deactivating/cleaning up/etc) but the path unit would continue to ignore inotify events. In short: any inotify event that occurs while the target unit deactivates would be completely lost. With this commit, the path will go back into a waiting state when the target unit starts deactivating. This means that any inotify event that occurs while the target unit deactivates will queue a start job.
6 lines
207 B
Desktop File
6 lines
207 B
Desktop File
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Service]
|
|
ExecStart=cp -v /tmp/copyme /tmp/copied
|
|
# once cp exits, service goes into deactivating state and then runs ExecStop
|
|
ExecStop=flock -e /tmp/noexit true
|