Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Joachim
Hi Peter, Shawns way to setup the keyboard is probably the best, but to answer the redirects part: Am Samstag, 26. Mai 2012 08:34:06 schrieb shawn: > On Sat, 2012-05-26 at 02:27 -0400, Peter Lemenkov wrote: > > * How to restore the original ">" and "<" behaviour if required? It doesnt work beca

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
Hello! 2012/5/26 shawn : > I have the same keyboard. You are doing this the hard (and slow) way. > > just add > > options hid_apple fnmode=2 > > to > > /etc/modprobe.d/hid_apple.conf I am aware of this method. Unfortunately (and quite surprisingly it is never worked for me (for whatever reasons)

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
Hello! 2012/5/26 Joachim : > It doesnt work because redirects are a shell feature and systemd starts > programs without the help of a shell. So this line > > ExecStart=/bin/echo 2 > /tmp/test.txt > > would need to be transformed into > > ExecStart=/bin/bash -c 'echo 2 > /tmp/test.txt' > > untested

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Sztan
Peter Lemenkov gmail.com> writes: > > Hello All! > > I've got Apple Mac keyboard which behaviour depends on a value stored > in /sys/module/hid_apple/parameters/fnmode file (default is "1"). The other way to do it would be with a tmpfiles.d snippet, the 'w' type was made for this purpose see h

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Canek Peláez Valdés
El 26/05/2012 02:38, "Peter Lemenkov" escribió: > > Hello! > > 2012/5/26 shawn : > > > I have the same keyboard. You are doing this the hard (and slow) way. > > > > just add > > > > options hid_apple fnmode=2 > > > > to > > > > /etc/modprobe.d/hid_apple.conf > > I am aware of this method. Unfortun

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Lemenkov
Hello! 2012/5/26 Canek Peláez Valdés : > Have you tried to add hid_apple.fnmode=2 to your kernel command line in > Grub? I don't use modules, I compile everything I need inside my kernel, and > this is the only way I have to pass parameters to my "modules". Thanks! It works now even w/o systemd s

[systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
Hey everyone, I've got a Buildroot FS and was trying to get 'system --user' functionality working. I didn't have PAM installed (it wasn't available in buildroot), but was informed that it was a must, so I have added it to my system now. Pam seems to be working perfectly as in I can log into the sy

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Kok, Auke-jan H
On Sat, May 26, 2012 at 3:31 PM, Shawn Ferris wrote: > Hey everyone, > > I've got a Buildroot FS and was trying to get 'system --user' > functionality working. I didn't have PAM installed (it wasn't > available in buildroot), but was informed that it was a must, so I > have added it to my system n

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
On Sat, May 26, 2012 at 11:12 AM, Kok, Auke-jan H wrote: > which pam entry is this? /etc/pam.d/?? Just 'login' for now.. didn't want to keep breaking ssh by using other. > this needs to be > > session   optional   pam_systemd.so ... I tried that too and it didn't change anything, so I put it b

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread shawn
On Sat, 2012-05-26 at 03:37 -0400, Peter Lemenkov wrote: > Hello! > > 2012/5/26 shawn : > > > I have the same keyboard. You are doing this the hard (and slow) way. > > > > just add > > > > options hid_apple fnmode=2 > > > > to > > > > /etc/modprobe.d/hid_apple.conf > > I am aware of this method

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Kok, Auke-jan H
On Sat, May 26, 2012 at 5:29 PM, Shawn Ferris wrote: > On Sat, May 26, 2012 at 11:12 AM, Kok, Auke-jan H > wrote: > >> which pam entry is this? /etc/pam.d/?? > > Just 'login' for now.. didn't want to keep breaking ssh by using other. > >> this needs to be >> >> session   optional   pam_systemd.so

Re: [systemd-devel] How to modify files from within systemd *.service? (for example using /bin/echo and stdout redirection)

2012-05-26 Thread Peter Sztan
The other way to do it would be with a tmpfiles.d snippet, the 'w' type was made for this exact purpose (writing values to /sys ala sysctl) see http://www.freedesktop.org/software/systemd/man/tmpfiles.d.html and http://cgit.freedesktop.org/systemd/systemd/commit/?id=31ed59c51126fce7d958c188772a397e

[systemd-devel] fix a man page reference

2012-05-26 Thread Matthias Clasen
trivial patch to fix a leftover from the latest round of renamings. 0001-journald-refer-to-the-correct-man-page.patch Description: Binary data ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listin

[systemd-devel] [PATCH] udev.pc: install udev files to /lib/udev rather than /lib/systemd

2012-05-26 Thread Tom Gundersen
--- src/udev/udev.pc.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udev.pc.in b/src/udev/udev.pc.in index 0b04c02..a0c2e82 100644 --- a/src/udev/udev.pc.in +++ b/src/udev/udev.pc.in @@ -2,4 +2,4 @@ Name: udev Description: udev Version: @VERSION@ -udevdir=@p

Re: [systemd-devel] Help with pam_systemd..

2012-05-26 Thread Shawn Ferris
On Sat, May 26, 2012 at 10:00 PM, Shawn Ferris wrote: >> 1) systemctl --system start user@.service (may not work, but is >> usable as a template) >> 2) ../user/default.target needs to define something meaningful >> 3) "session optional pam_systemd.so" in /etc/pam.d/systemd-auth >> 4) proper dbus.s