[systemd-bugs] [Bug 87287] New: path units should express a need for the unit they activate

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Dec 13 07:39:33 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=87287

            Bug ID: 87287
           Summary: path units should express a need for the unit they
                    activate
           Product: systemd
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: j.witteveen at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

Path units having either PathExists=, PathExistsGlob=, or DirectoryNotEmpty=
should 'want' the unit they trigger as long as the path-condition is met. That
way, a triggered unit can have StopWhenUnneeded=true to be truly path-based
activated.

For example, with foo.path specifying PathExists=/foo and foo.service having
StopWhenUnneeded=true, the service should be started whenever /foo exists or
comes into existence and stopped whenever it is deleted. Currently, foo.service
is stopped immediately when it is started by foo.path because it is not needed
(anymore).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141213/38418c52/attachment.html>


More information about the systemd-bugs mailing list