8000 Add caution in system+semaphore · symfony/symfony-docs@c52f50c · GitHub
[go: up one dir, main page]

Skip to content

Commit c52f50c

Browse files
committed
Add caution in system+semaphore
1 parent 56b6a0a commit c52f50c

File tree

1 file changed

+9
-0
lines changed

components/lock.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,14 @@ can be two running containers in parallel.
631631
concurrent process on a new machine, check that other process are stopped
632632
on the old one.
633633

634+
.. caution::
635+
636+
When runing on systemd with option ``RemoveIPC=yes`` (default value for
637+
non-system user), locks are deleted by systemd, when the user logs out,
638+
or a cron job ends. This is a well known `issue reported in systemd`_.
639+
Check that process is ran with a system user (UID<1000), or set the
640+
option ``RemoveIPC=off`` in ``/etc/systemd/logind.conf``.
641+
634642
ZookeeperStore
635643
~~~~~~~~~~~~~~
636644

@@ -670,3 +678,4 @@ are still running.
670678
.. _`Doctrine DBAL Connection`: https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Connection.php
671679
.. _`Data Source Name (DSN)`: https://en.wikipedia.org/wiki/Data_source_name
672680
.. _`ZooKeeper`: https://zookeeper.apache.org/
681+
.. _`issue reported in systemd`: https://github.com/systemd/systemd/issues/2039

0 commit comments

Comments
 (0)
0