[systemd-bugs] [Bug 90505] Singleton Template

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jun 8 23:26:37 PDT 2015


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

--- Comment #2 from Sah Lee <contact at leesah.name> ---
Thanks for replying @Lennart .

I am using Systemd to maintain a set of network adaptation scripts, meaning,
for instance, to mount samba drives and switch to a certain proxy when I am in
office, and to switch to my own proxy (that can bypass the Great Firewall of
China) when I am in Starbucks, etc..

To group all the service units, I created a template: `network at .target`, and
have several instances such as `network at office.target`, `network at home.target`,
`network at starbucks.target`, `network at offline.target`, etc..

Now due to the nature of these targets, there should always be only one
instance that is active. But I can't find a way to define this exclusiveness.

-- 
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/20150609/203be28f/attachment.html>


More information about the systemd-bugs mailing list