Re: [systemd-devel] Problem when using Cgroups with the Systemd command

2014-09-03 Thread Lukáš Nykrýn
Wei Yan píše v Út 02. 09. 2014 v 09:05 -0700:
 Hi, guys,
 
 
 I’m trying to get Cgroups working for RHEL7, and has a question on the
 Cgroups. When I started a process using “systemd-run --user command”
 under a user account, I always got an exception that “cannot get
 the dbus connection”. The systemd-run command under root user works
 well. But we cannot always use the root account to start the process.
 
 
 I also looked into the systemd document. It seems that we should
 call “startTransientUnit()” method on systemd on the bus. Is that the
 recommended way? Are there convenient CLI commands that we can call to
 achieve the same?
 
 
 thanks,
 Wei
 
 ___
 systemd-devel mailing list
 systemd-devel@lists.freedesktop.org
 http://lists.freedesktop.org/mailman/listinfo/systemd-devel

In rhel7 we do not start user instances of systemd for user.

Lukas 

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Problem when using Cgroups with the Systemd command

2014-09-02 Thread Wei Yan
Hi, guys,

I’m trying to get Cgroups working for RHEL7, and has a question on the Cgroups. 
When I started a process using “systemd-run --user command” under a user 
account, I always got an exception that “cannot get the dbus connection”. The 
systemd-run command under root user works well. But we cannot always use the 
root account to start the process.

I also looked into the systemd document. It seems that we should call 
“startTransientUnit()” method on systemd on the bus. Is that the recommended 
way? Are there convenient CLI commands that we can call to achieve the same?

thanks,
Wei
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel