[systemd-devel] Starting in a network name?
Lennart Poettering
lennart at poettering.net
Fri Apr 10 02:34:49 PDT 2015
On Thu, 09.04.15 18:15, Vinay kumar (lonerider7.96k at gmail.com) wrote:
> Lennart Poettering <lennart <at> poettering.net> writes:
>
> >
> > On Mon, 06.01.14 11:04, Holger Schurig (holgerschurig <at> gmail.com) wrote:
> >
> > > Hi, I used "ip netns" commands to setup several network namespaces.
> > > Now I want to run a user-space (non-root) in one of those netspaces.
> > > "ip netns exec NAME COMMAND" seems to only work for root, not normal
> > > users.
> > >
> > > Is there a way to configure a systemd unit to run in a *specific*
> > > network namespace? I mean similar to, but more general than,
> > > PrivateNetwork=true and JoinsNamespaceOf= ...
> >
> > No, this is currently not available. But certainly doable. I added it to
> > the TODO list now.
> >
>
> Following on this older email thread, did this get implemented?..
No, not so far.
> What is the current preferred mechanism to start services in different netns?
> We are doing with 'ip netns exec .. " command in the ExecStart for systemD.
> s there any other options?
"nsenter -n" should work, too...
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list