[Bug 1973589] Re: Restart loop when using PathExistsGlob
Nick Rosbrook
1973589 at bugs.launchpad.net
Wed Jun 21 21:06:58 UTC 2023
I think this is to be expected since your service just does one thing
and exits immediately -- when the service exists, the PathExistsGlob
condition is still true, and so the service is activated again by
test.path.
If you had a long running service, or another condition to say "we
already ran test.service, no need to run again", you would avoid this.
** Changed in: systemd (Ubuntu)
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1973589
Title:
Restart loop when using PathExistsGlob
Status in systemd package in Ubuntu:
Invalid
Bug description:
When using PathExistsGlob in a path unit, systemd starts the
corresponding service unit in an infinite loop. We have observed this
problem only under Jammy.
--------------
[Unit]
Description=Test
[Path]
PathExistsGlob=/home/www-data/test/*.so
Unit=test.service
[Install]
WantedBy=multi-user.target
--------------
[Unit]
Description=Test
[Service]
Type=simple
ExecStart=echo test
StartLimitBurst=1000
[Install]
WantedBy=multi-user.target
-------------
www-data at josi-test-jammy03:~ $ systemctl --user status test.path
× test.path - Test
Loaded: loaded (/home/www-data/.config/systemd/user/test.path; disabled; vendor preset: enabled)
Active: failed (Result: unit-start-limit-hit) since Mon 2022-05-16 17:08:08 CEST; 121ms ago
Triggers: ● test.service
May 16 17:08:04 josi-test-jammy03 systemd[24979]: Started Test
May 16 17:08:08 josi-test-jammy03 systemd[24979]: test.path: Failed with result 'unit-start-limit-hit'.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1973589/+subscriptions
More information about the foundations-bugs
mailing list