Re: [systemd-devel] EnvironmentFile generated during ExecStartPre phase

2012-10-31 Thread Lennart Poettering
On Wed, 31.10.12 14:28, Honza Horak ([email protected]) wrote: > Hi systemd hackers, > > I'm wondering when exactly EnvironmentFile is read during service > start. Shortly before process execution (which is actually documented in systemd.exec(5)). Process execution means that it will be reloade

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Lennart Poettering
On Thu, 01.11.12 01:27, Lennart Poettering ([email protected]) wrote: > > What type of architecture should we use? Ideally we'd like to be able to > > use the live remote logging that is discussed in the systemd design > > document. > > The journal currently has not nice way to do live logg

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Lennart Poettering
1;3401;0cOn Wed, 31.10.12 09:48, Cliff Brake ([email protected]) wrote: > Hello, > > We have a system that is composed of 8 embedded ARM CPUs, and one server. > The embedded ARM units are booting an initramfs that uses systemd. > > We would like to store the logs from the 8 embedded systems

Re: [systemd-devel] [PATCH] [RFC] systemd-bootchart: merge bootchart.

2012-10-31 Thread Kok, Auke-jan H
On Wed, Oct 31, 2012 at 11:30 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Oct 17, 2012 at 04:01:12PM -0700, Auke Kok wrote: >> << do not merge this patch - it has not been fully tested yet >> > Hi, thanks for taking the time to review! >> This is an initial RFC patch merging bootchart almos

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Colin Guthrie
'Twas brillig, and Cliff Brake at 31/10/12 16:50 did gyre and gimble: > > > On Wed, Oct 31, 2012 at 11:16 AM, Cliff Brake > wrote: > > On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler > wrote: > > > > 2) can the systemd-jou

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Cliff Brake
On Wed, Oct 31, 2012 at 11:16 AM, Cliff Brake wrote: > On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler wrote: > >> >> > 2) can the systemd-journal-gatewayd be used on a independent >> directory of >> > log files? >> systemd-journal-gatewayd doesn't take any arguments, so it currently >> seems

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Cliff Brake
On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler wrote: > > > 2) can the systemd-journal-gatewayd be used on a independent directory > of > > log files? > systemd-journal-gatewayd doesn't take any arguments, so it currently > seems not possible. I assume because sd_journal_open_directory() ex

Re: [systemd-devel] EnvironmentFile generated during ExecStartPre phase

2012-10-31 Thread 微蔡
On Wednesday 31 October 2012 16:46:55 Mantas Mikulėnas wrote: > On Wed, Oct 31, 2012 at 3:28 PM, Honza Horak wrote: > > My use case is the following: the service should be started with some > > environment variables defined, but the variable values are not static, but > > rather dynamically genera

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Cliff Brake : > On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler wrote: >> >> 2012/10/31 Cliff Brake : >> >> 6) nfs mount either the server's /var/log/journal over the clients >> /var/log/journal, or all of the >> clients /var/log/journal/s into the server's /var/log/journal. > > > How

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Cliff Brake
On Wed, Oct 31, 2012 at 10:36 AM, Mirco Tischler wrote: > 2012/10/31 Cliff Brake : > 6) nfs mount either the server's /var/log/journal over the clients > /var/log/journal, or all of the > clients /var/log/journal/s into the server's /var/log/journal. How does the process work for mounting this

Re: [systemd-devel] EnvironmentFile generated during ExecStartPre phase

2012-10-31 Thread Honza Horak
On 10/31/2012 03:46 PM, Mantas Mikulėnas wrote: On Wed, Oct 31, 2012 at 3:28 PM, Honza Horak wrote: My use case is the following: the service should be started with some environment variables defined, but the variable values are not static, but rather dynamically generated using some script. Th

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Mirco Tischler : > 2012/10/31 Cliff Brake : >> Additionally, on the server, it seems like it makes sense to use the journal >> files for the log storage. >> 1) how would log rotation be managed (discard old logs)? > systemd does log rotation based on available disc space, in order to >

Re: [systemd-devel] EnvironmentFile generated during ExecStartPre phase

2012-10-31 Thread Mantas Mikulėnas
On Wed, Oct 31, 2012 at 3:28 PM, Honza Horak wrote: > My use case is the following: the service should be started with some > environment variables defined, but the variable values are not static, but > rather dynamically generated using some script. This could be solved by > using EnvironmentFile

Re: [systemd-devel] live remote logging?

2012-10-31 Thread Mirco Tischler
2012/10/31 Cliff Brake : > Hello, > > I've come up with several ideas: > > 1) scp/rsync the journal files to the server. >* how do we know when a file is ready to be scp'd? >* is there any way to get reasonable update rate? It seems running rsync > every 10s might get expensive. Each time

[systemd-devel] live remote logging?

2012-10-31 Thread Cliff Brake
Hello, We have a system that is composed of 8 embedded ARM CPUs, and one server. The embedded ARM units are booting an initramfs that uses systemd. We would like to store the logs from the 8 embedded systems on the server. In the past, we would use the syslog networking logging. What type of a

[systemd-devel] EnvironmentFile generated during ExecStartPre phase

2012-10-31 Thread Honza Horak
Hi systemd hackers, I'm wondering when exactly EnvironmentFile is read during service start. My use case is the following: the service should be started with some environment variables defined, but the variable values are not static, but rather dynamically generated using some script. This cou

Re: [systemd-devel] [PATCH] systemd: mount the EFI variable filesystem

2012-10-31 Thread Kay Sievers
On Wed, Oct 31, 2012 at 2:04 PM, Colin Walters wrote: > On Mon, 2012-10-29 at 10:21 +0800, joeyli wrote: > >> I tested this patch on my UEFI notebook with latest EFI kernel git tree, >> the efivarfs mounted normally after system boot and I can delete/add EFI >> variable through /sys/firmware/efi/e

Re: [systemd-devel] [PATCH] Fix a fatal dbus abort in bus_manager_message_handler()

2012-10-31 Thread Colin Walters
On Wed, 2012-10-31 at 13:53 +0100, Eelco Dolstra wrote: > Oops, you're right. Searching for calls to dbus_message_unref I mistook the > "oom" label in message_from_file_changes() for the one in > bus_manager_message_handler(). So this one should stay. You could also add the cleanup attribute th

Re: [systemd-devel] [PATCH] systemd: mount the EFI variable filesystem

2012-10-31 Thread Colin Walters
On Mon, 2012-10-29 at 10:21 +0800, joeyli wrote: > I tested this patch on my UEFI notebook with latest EFI kernel git tree, > the efivarfs mounted normally after system boot and I can delete/add EFI > variable through /sys/firmware/efi/efivars. This causes systemd to output a warning if the kerne

Re: [systemd-devel] [PATCH] Fix a fatal dbus abort in bus_manager_message_handler()

2012-10-31 Thread Colin Walters
On Wed, 2012-10-31 at 11:53 +0100, Eelco Dolstra wrote: > If ListUnitFiles fails, or an OOM occurs, then dbus_message_unref() > will be called twice on "reply", causing systemd to crash. So remove > the calls to dbus_message_unref(); these are unnecessary because of > the cleanup attribute on "rep

Re: [systemd-devel] [PATCH] Fix a fatal dbus abort in bus_manager_message_handler()

2012-10-31 Thread Eelco Dolstra
Hi, On 31/10/12 13:48, Colin Walters wrote: >> @@ -495,7 +495,6 @@ static DBusMessage *message_from_file_changes( >> return reply; >> >> oom: >> -dbus_message_unref(reply); >> return NULL; >> } > > This first change looks wrong to me - I don't see a cleanup attribut

[systemd-devel] [PATCH] Fix a fatal dbus abort in bus_manager_message_handler()

2012-10-31 Thread Eelco Dolstra
If ListUnitFiles fails, or an OOM occurs, then dbus_message_unref() will be called twice on "reply", causing systemd to crash. So remove the calls to dbus_message_unref(); these are unnecessary because of the cleanup attribute on "reply". --- src/core/dbus-manager.c | 2 -- 1 file changed, 2 dele

[systemd-devel] What does it take to make test-engine working again?

2012-10-31 Thread Holger Freyther
Hi, I made a small change and wanted to add test coverage for the bug I was fixing. The only test that is loading units appears to be test-engine. Sadly this test is not executed as part of make check and executing it by hand results in an assertion when starting the first job. Is there a preferr