Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Oleksii Shevchuk
(Note that this means systemd --user will only work when run from user@.service, as access to the cgroup tree is *not* granted for normal sessions directly.) So, how sessions should work now? Before that I started systemd --user as main session process, and when it exited, session exited too.

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Oleksii Shevchuk
Ok. I trying to use current git. Nothing works for me. I.e. systemd --user starts, but I couldn't connect to it, because it doesn't connect to d-bus (because dbus socket doesn't exists and systemd doesn't start dbus.socket probably). systemd starts X services, but they couldn't establish X

Re: [systemd-devel] no installed machine-id vs systemd-in-initramfs

2013-07-11 Thread Harald Hoyer
On 07/10/2013 05:26 PM, Colin Walters wrote: The gnome-ostree build system generates disk images that can be downloaded directly; there is no installer. In the old model of dracut shell script + systemd, systemd's main.c has: if (arg_running_as == SYSTEMD_SYSTEM ...) { ...

Re: [systemd-devel] no installed machine-id vs systemd-in-initramfs

2013-07-11 Thread Kay Sievers
On Thu, Jul 11, 2013 at 11:55 AM, Harald Hoyer harald.ho...@gmail.com wrote: On 07/10/2013 05:26 PM, Colin Walters wrote: The gnome-ostree build system generates disk images that can be downloaded directly; there is no installer. In the old model of dracut shell script + systemd, systemd's

Re: [systemd-devel] no installed machine-id vs systemd-in-initramfs

2013-07-11 Thread Harald Hoyer
On 07/11/2013 12:04 PM, Kay Sievers wrote: On Thu, Jul 11, 2013 at 11:55 AM, Harald Hoyer harald.ho...@gmail.com wrote: On 07/10/2013 05:26 PM, Colin Walters wrote: The gnome-ostree build system generates disk images that can be downloaded directly; there is no installer. In the old model of

Re: [systemd-devel] Help getting serial console working again after upgrade to systemd?

2013-07-11 Thread Łukasz Stelmach
It was 2013-07-10 śro 20:26, when Dmt Ops wrote: Hey all, I'm starting upgrades to old production servers to newer 64-bit Linux that runs systemd = v195. Serial consoles are always my 1st step. Before upgrade it worked great. After upgrade, with the new systemd-based config, I'm not

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 20:07, Kok, Auke-jan H (auke-jan.h@intel.com) wrote: +r = cg_path_get_owner_uid(path, uid); +if (r 0 r != -ENOENT) +return r; + +if (uid != (uid_t) -1) +chown(fs, uid, (gid_t) -1); + systemd in git will now

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 07:41, Oleksii Shevchuk (alx...@gmail.com) wrote: (Note that this means systemd --user will only work when run from user@.service, as access to the cgroup tree is *not* granted for normal sessions directly.) So, how sessions should work now? Before that I started

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 09:40, Oleksii Shevchuk (alx...@gmail.com) wrote: Ok. I trying to use current git. Nothing works for me. I.e. systemd --user starts, but I couldn't connect to it, because it doesn't connect to d-bus (because dbus socket doesn't exists and systemd doesn't start dbus.socket

[systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Karol Lewandowski
Add ability to test if given file contains specified value. File and expected value are given as one argument separated by colon (:), i.e. ConditionFileContains=/sys/module/sn/parameters/enabled:1 --- As above example suggests we use it to conditionally start service based on kernel module

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Dave Reisner
On Thu, Jul 11, 2013 at 07:18:35PM +0200, Karol Lewandowski wrote: Add ability to test if given file contains specified value. File and expected value are given as one argument separated by colon (:), i.e. ConditionFileContains=/sys/module/sn/parameters/enabled:1 --- As above example

[systemd-devel] My last post went as unprocessed

2013-07-11 Thread David Lambert
My last post went as unprocessed. I checked my membership and it is current ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] My last post went as unprocessed

2013-07-11 Thread David Lambert
OK this post went through, so I am replying with the original text that was unprocessed: On my Angstrom distribution the sshd service is controlled by the file /lib/systemd/system/sshd@.service. What is the significance of the @ in the service name? This may be buried in documentation, but

[systemd-devel] fstab Mounts Not Getting Waken Up

2013-07-11 Thread CACook
I'd understood that if a mount is in fstab, that it should be re-established when the system wakes. But that's not happening. Meaning two sshfs mounts as so: sshfs#carl@droog:/ /media/droog fuse user,auto,_netdev,gid=6,umask=007,cache=no,ServerAliveInterval=15,allow_other,comment=sshfs 0 0

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Oleksii Shevchuk
Yeah, you need to set some env vars currently. The idea however is that the X/dbus libraries learn to look into XDG_RUNTIME_DIR on their own. I tried to make it work without success -- result is unusable. So, one of the issues - pam_systemd doesn't forward environment to child process. Without

Re: [systemd-devel] My last post went as unprocessed

2013-07-11 Thread David Lambert
Thanks for your quick reply. I also notice a - preceding the target for ExecStart target. How does this work and where is it documented. Again very difficult to search :-[ Dave. [Unit] Description=OpenSSH Per-Connection Daemon After=sshdgenkeys.service [Service] ExecStart=-/usr/sbin/sshd -i

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 23:20, Oleksii Shevchuk (alx...@gmail.com) wrote: Yeah, you need to set some env vars currently. The idea however is that the X/dbus libraries learn to look into XDG_RUNTIME_DIR on their own. I tried to make it work without success -- result is unusable. So, one of the

Re: [systemd-devel] My last post went as unprocessed

2013-07-11 Thread Reindl Harald
Am 11.07.2013 22:36, schrieb David Lambert: Thanks for your quick reply. I also notice a - preceding the target for ExecStart target. How does this work and where is it documented. Again very difficult to search :-[ the command is allowed to fail without failing the service it's common for

Re: [systemd-devel] My last post went as unprocessed

2013-07-11 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 11, 2013 at 10:59:41PM +0200, Reindl Harald wrote: Am 11.07.2013 22:36, schrieb David Lambert: Thanks for your quick reply. I also notice a - preceding the target for ExecStart target. How does this work and where is it documented. Again very difficult to search :-[ See

Re: [systemd-devel] [PATCH] cgroups: chown user slices

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 23:56, Oleksii Shevchuk (alx...@gmail.com) wrote: pam_gnome_keyring needs to be in the pam stack for systemd-shared of course. pam_gnome_keyring needs authinfo to unlock login keychain. Will that be passed to new systemd instance? Well, hmm, I am not sure how

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 19:18, Karol Lewandowski (k.lewando...@samsung.com) wrote: Add ability to test if given file contains specified value. File and expected value are given as one argument separated by colon (:), i.e. ConditionFileContains=/sys/module/sn/parameters/enabled:1 Hmm, I don't

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 13:37, Dave Reisner (d...@falconindy.com) wrote: +p = strchr(path, ':'); This is going to fail for a file:value pair such as /foo:/bar/baz:value. You could use strrchr(), but then you have to be concerned about matching values with a colon. This might become a

Re: [systemd-devel] [PATCH] man: document the slice unit

2013-07-11 Thread Lennart Poettering
On Thu, 11.07.13 04:47, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Thu, Jul 11, 2013 at 03:02:44AM +0200, Lennart Poettering wrote: On Wed, 10.07.13 02:23, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: --- Does this description fit the masterplan? What

Re: [systemd-devel] Forward systemd's sleep.target to a systemd user session

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 21:04, Jörg Thalheim (jo...@higgsboson.tk) wrote: How I can trigger sleep.target in systemd --user session? What precisely are you trying to do with this? Can I use systemctl --user only at a login shell and not in a systemd unit? Because using systemd --user from tty works

Re: [systemd-devel] Help getting serial console working again after upgrade to systemd?

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 11:26, Dmt Ops (ops...@gmail.com) wrote: Hey all, I'm starting upgrades to old production servers to newer 64-bit Linux that runs systemd = v195. Serial consoles are always my 1st step. Before upgrade it worked great. After upgrade, with the new systemd-based config,

Re: [systemd-devel] no installed machine-id vs systemd-in-initramfs

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 11:26, Colin Walters (walt...@verbum.org) wrote: The gnome-ostree build system generates disk images that can be downloaded directly; there is no installer. In the old model of dracut shell script + systemd, systemd's main.c has: if (arg_running_as == SYSTEMD_SYSTEM ...) {

Re: [systemd-devel] journal and /run/systemd/journal/syslog

2013-07-11 Thread Lennart Poettering
On Wed, 10.07.13 12:30, Umut Tezduyar (u...@tezduyar.com) wrote: We though about just bumping this globally via sysctl, but we feared that might not sit well with some folks, as we shouldn't change a global setting just because one user of it would benefit, especially given that we don't

Re: [systemd-devel] [PATCH 1/3] unit: check correct variable after strdup

2013-07-11 Thread Lennart Poettering
On Tue, 09.07.13 15:45, Lukas Nykryn (lnyk...@redhat.com) wrote: Applied all three! Thanks! --- src/core/unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/unit.c b/src/core/unit.c index 447f201..b3f9832 100644 --- a/src/core/unit.c +++ b/src/core/unit.c

Re: [systemd-devel] [RFC PATCH] condition: add ConditionFileContains=

2013-07-11 Thread Kyungmin Park
On Fri, Jul 12, 2013 at 7:43 AM, Lennart Poettering lenn...@poettering.net wrote: On Thu, 11.07.13 13:37, Dave Reisner (d...@falconindy.com) wrote: +p = strchr(path, ':'); This is going to fail for a file:value pair such as /foo:/bar/baz:value. You could use strrchr(), but then you