Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-10-24 Thread Thomas Jarosch
On Sunday, 23. October 2011 10:00:36 Dan Williams wrote: > Is it time for a libmd.so, so systemd can invoke the "--wait-clean --scan" > process itself? Probably simpler to just SIGTERM mdmon and wait for it. The mdadm code makes good use of non-reentrant functions like ctime(), readdir() and oth

[systemd-devel] [PATCH/resend] systemctl: make list-unit-files output more economical

2011-10-24 Thread Zbigniew Jędrzejewski-Szmek
The first column is given the width of the widest entry, if possible, otherwise all entries are ellipsized to fit in ($COLUMNS - (width of second column)). --- src/systemctl.c | 21 - 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/systemctl.c b/src/syste

[systemd-devel] [pull request/resend] systemadm updates

2011-10-24 Thread Zbigniew Jędrzejewski-Szmek
Hi, I'm resending the pull request (previously as a patch series) for systemadm updates: git://in.waw.pl/git/systemd systemadm_changes * systemadm_changes: systemadm: use colors for id too, remove color from fragment link systemadm: adjust row numbers after removing 'aliases'

[systemd-devel] [PATCH 0/4] Re: [PATCH 0/4] systemd and watchdog

2011-10-24 Thread Michael Olbrich
Hi, I've updated the patch series. Mostly just rebased to the latest git and some documentation. I hope this makes my ideas a bit clearer. Regards, Michael Olbrich Michael Olbrich (4): WIP: service: add watchdog timestamp WIP: service: add watchdog restart/reboot timeouts WIP: manager: add

[systemd-devel] [PATCH 3/4] WIP: manager: add a global watchdog reboot timestamp

2011-10-24 Thread Michael Olbrich
This patch adds WatchdogRebootTimestamp[Monotonic] to the systemd manager API. It contains the earliest point in time when systemd might reboot the system because the timer for WatchdogRebootUSec for a service expired. If we assume the system takes Xus to shut down then WatchdogRebootTimestamp + Xu

[systemd-devel] [PATCH 4/4] WIP: add basic watchdog daemon

2011-10-24 Thread Michael Olbrich
This patch introduces a small watchdog daemon that supervises systemd and handles /dev/watchdog. This is mostly a prove of concept for now. --- Makefile.am| 21 - src/99-systemd.rules.in|2 + src/watchdogd.c| 178 ++

[systemd-devel] [PATCH 1/4] WIP: service: add watchdog timestamp

2011-10-24 Thread Michael Olbrich
This patch adds WatchdogTimestamp[Monotonic] to the systemd service D-Bus API. The timestamp is updated to the current time when the service calls 'sd_nofity("WATCHDOG=1\n")'. Using a timestamp instead of an 'alive' flag has two advantages: 1. No timeout is needed to define when a service is no lon

[systemd-devel] [PATCH 2/4] WIP: service: add watchdog restart/reboot timeouts

2011-10-24 Thread Michael Olbrich
This patch adds the WatchdogRestartUSec and WatchdogRebootUSec properties to services. Systemd will restart the service / reboot the system if the watchdog timeout has not been updated for the configured amount of time. This functionality is only enabled if the watchdog timeout is set at least once

Re: [systemd-devel] [PATCH/resend] systemctl: make list-unit-files output more economical

2011-10-24 Thread Michal Schmidt
On Mon, 24 Oct 2011 11:49:59 +0200 Zbigniew Jędrzejewski-Szmek wrote: > The first column is given the width of the widest entry, > if possible, otherwise all entries are ellipsized to fit > in ($COLUMNS - (width of second column)). Thanks! I have modified it a bit to make it similar to output_unit

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-10-24 Thread NeilBrown
On Sun, 23 Oct 2011 01:00:36 -0700 Dan Williams wrote: > On Tue, Feb 8, 2011 at 9:28 AM, Lennart Poettering > wrote: > > On Tue, 08.02.11 16:54, Andrey Borzenkov (arvidj...@mail.ru) wrote: > > > >> >> a) mdmon is perfectly capable of restarting, it is already used to > >> >> take over mdmon laun