[systemd-devel] [PATCH 2/2] systemctl: add "systemctl cat"

2013-11-23 Thread Shawn Landden
--- TODO | 2 -- src/shared/fileio.c | 73 - src/shared/fileio.h | 1 + src/systemctl/systemctl.c | 91 +++ 4 files changed, 164 insertions(+), 3 deletions(-) diff --git a/TODO b/TOD

[systemd-devel] [PATCH 1/2] systemctl: refactor show()

2013-11-23 Thread Shawn Landden
v2, don't leave in unused function --- src/systemctl/systemctl.c | 36 +--- 1 file changed, 13 insertions(+), 23 deletions(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 84826a3..6cb7a82 100644 --- a/src/systemctl/systemctl.c +++ b/src/

Re: [systemd-devel] Restart instantiated services after suspend

2013-11-23 Thread Marcos Felipe Rasia de Mello
2013/11/20 Lennart Poettering : > On Tue, 19.11.13 14:18, Marcos Felipe Rasia de Mello (marcos...@gmail.com) > wrote: > >> Hi folks, >> >> I am trying to disable HDDs power management in a systemd way (aka no >> shell scripts :) >> >> /etc/udev/rules.d/99-hdparm.rules >> >> SUBSYSTEM=="block", KER

[systemd-devel] [PATCH 2/2] ptyfwd: Don't set the output prop of stdin, nor the input props of stdout.

2013-11-23 Thread Luke Shumaker
It was calling cfmakeraw(3) on the properties for STDIN_FILENO; cfmakeraw sets both input and output properties. If (and only if) stdin and stdout are the same device is this correct. Otherwise, we must change only the input properties of stdin, and only the output properties of stdout. --- src/

[systemd-devel] [PATCH 1/2] ptyfwd: Set the size of the PTY base on the size of stdout, not stdin.

2013-11-23 Thread Luke Shumaker
--- src/shared/ptyfwd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/ptyfwd.c b/src/shared/ptyfwd.c index 7225b93..85a0ddc 100644 --- a/src/shared/ptyfwd.c +++ b/src/shared/ptyfwd.c @@ -305,7 +305,7 @@ static int process_pty_loop(int master, sigset_t *mask, p

[systemd-devel] nspawn (ptyfwd): Correctly handle output redirection

2013-11-23 Thread Luke Shumaker
At Tue, 5 Nov 2013 19:59:46 +0100, Lennart Poettering wrote: > On Mon, 04.11.13 11:05, Luke T. Shumaker (luke...@sbcglobal.net) wrote: > > A couple of weeks ago, I reported a bug that systemd-nspawn does not > > correctly handle I/O redirection[1]. > > > > I described in detail the several smaller

Re: [systemd-devel] [HEADS-UP] PID 1 now ported to libsystemd-bus

2013-11-23 Thread Andrey Borzenkov
В Wed, 20 Nov 2013 23:44:23 +0100 Lennart Poettering пишет: > On Wed, 20.11.13 23:10, Tom Gundersen (t...@jklm.no) wrote: > > > > > On Wed, Nov 20, 2013 at 9:08 PM, Lennart Poettering > > wrote: > > > Heya! > > > > > > I just pushed a huge patch that ports the last remaining bit from > > > lib