[systemd-bugs] [Bug 54659] OnStart, OnStop, OnReload, OnRestart, OnFail etc actions

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Nov 3 10:19:45 PDT 2012


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

--- Comment #2 from Oleksii Shevchuk <public.avatar at gmail.com> ---
Created attachment 69493
  --> https://bugs.freedesktop.org/attachment.cgi?id=69493&action=edit
Add OnStopRestoreConflicts

Extends previous patch. Add optional support for restoring stopped by conflict 
resolution deps, on successful stop conflicing unit. (Oh.) 


i.e.

user > cat dep1.target
[Unit]
Description=dep1
OnStopRestoreConflicts=yes

user > cat dep2.target
[Unit]
Description=dep2
Conflicts=dep1.target

start dep2.target
// dep2 started
start dep1.target
// dep1 started
// dep2 stopped
// dep2 added to dep1 OnStopRestoreConflicts deps
stop dep1.target
// dep1 stopped
// dep2 started
// dep2 removed from dep1 OnStopRestoreConflicts deps

-- 
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/20121103/d9dcc242/attachment.html>


More information about the systemd-bugs mailing list