Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Burkhard Kayser
Hi Lennart, based on your recommendation I tried the following service. [Unit] Description=my private startup service Requires=local-fs.target syslog.service nfs.service After=local-fs.target syslog.service nfs.service [Service] ExecStart=/etc/init.d/my_startup start ExecStop=/etc/init.d/my_star

Re: [systemd-devel] PATCH: fix sparse warnings

2012-02-29 Thread Frederic Crozat
Le mercredi 29 février 2012 à 17:04 +, Frederic Crozat a écrit : > Hi, > > while trying to use sparse to detect potential endianness errors in > journald code (apparently, we can't use it for that), I found some other > warnings with sparse. > > Attached patch fixes those (mostly missing sta

[systemd-devel] PATCH: fix sparse warnings

2012-02-29 Thread Frederic Crozat
Hi, while trying to use sparse to detect potential endianness errors in journald code (apparently, we can't use it for that), I found some other warnings with sparse. Attached patch fixes those (mostly missing static call, 0 vs NULL and macros redefinition). -- Frederic Crozat SUSE __

Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Lennart Poettering
On Tue, 28.02.12 20:37, Burkhard Kayser ([email protected]) wrote: Please stop sending HTML email to this mailing list. HTML mail is not acceptable on this mailing list. Sorry. >Hi >I tried as well the following configuration. My script shall be started >before ANY other servi

Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Lennart Poettering
On Sun, 26.02.12 19:13, Reindl Harald ([email protected]) wrote: > the ExecStop is called but systemd DOES NOT wait > until it is finished leading to all virtual machines > are killed hard while "systemctl stop vmware-default.service" > does supsend them perfectlly as long it is not combined

Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Lennart Poettering
On Sun, 26.02.12 17:24, Burkhard Kayser ([email protected]) wrote: >Hello, >I do need a customized shutdown service which performs some clean up >tasks, e.g. stopping virtual machines,  before the shutdown service of >systemd actually starts. >The shutdown of the system

Re: [systemd-devel] Has anyone written equiv of ck-xinit-session for logind?

2012-02-29 Thread Colin Guthrie
'Twas brillig, and Lennart Poettering at 29/02/12 13:52 did gyre and gimble: > On Tue, 28.02.12 00:52, Colin Guthrie ([email protected]) wrote: > >> Hi, >> >> I'm getting bug reports about startx not registering user sessions under >> systemd. >> >> With console-kit, ck-xinit-session did the jo

Re: [systemd-devel] Has anyone written equiv of ck-xinit-session for logind?

2012-02-29 Thread Lennart Poettering
On Tue, 28.02.12 00:52, Colin Guthrie ([email protected]) wrote: > Hi, > > I'm getting bug reports about startx not registering user sessions under > systemd. > > With console-kit, ck-xinit-session did the job and I was hoping someone > (Fred - maybe you've done it on SuSE?) had written the e

Re: [systemd-devel] Documentation question

2012-02-29 Thread Lennart Poettering
On Wed, 29.02.12 06:00, David Lambert ([email protected]) wrote: > > On 02/28/2012 10:09 PM, Mathieu Bridon wrote: > >Do you have the folder /var/log/journal on your system? > > > >If it exists, systemd-journald will write logs there, otherwise it will > >write them to /run/journal > > > >And sinc

Re: [systemd-devel] Documentation question

2012-02-29 Thread Lennart Poettering
On Tue, 28.02.12 14:51, David Lambert ([email protected]) wrote: > Please excuse if this is trivial, but I am a systemd newbie. > I am running systemd on Angstrom/Beaglebone. After a couple of days > I notice that the process systemd-journald had grown and was > ultimately killed by the kernel's OO

Re: [systemd-devel] [PATCH] systemd-journald: fix endianess bug

2012-02-29 Thread Lennart Poettering
On Wed, 29.02.12 12:45, Dirk Eibach ([email protected]) wrote: Thanks, applied! > --- > src/journal/journal-file.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c > index 20ca3f6..275caea 100644 > --- a/src/jou

Re: [systemd-devel] [PATCH] systemd-journald: fix endianess bug

2012-02-29 Thread Frederic Crozat
Le mercredi 29 février 2012 à 12:45 +0100, Dirk Eibach a écrit : > --- > src/journal/journal-file.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c > index 20ca3f6..275caea 100644 > --- a/src/journal/journal-fi

Re: [systemd-devel] Documentation question

2012-02-29 Thread David Lambert
On 02/28/2012 10:09 PM, Mathieu Bridon wrote: Do you have the folder /var/log/journal on your system? If it exists, systemd-journald will write logs there, otherwise it will write them to /run/journal And since /run is mounted as tmpfs, that could explain the memory usage you are seeing? Than

Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Reindl Harald
well, but it does not help i have this since months maybe the stoneold version in Fedora 15 is the problem other possible reason: the script starts serveral "vmrun"-processes to suspend the virtual machines and systemd is killing this processes during shutdown next possible reason: the script is

[systemd-devel] [PATCH] systemd-journald: fix endianess bug

2012-02-29 Thread Dirk Eibach
--- src/journal/journal-file.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 20ca3f6..275caea 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -238,7 +238,7 @@ static int journal_fi

[systemd-devel] [PATCH] systemd-journald: fix endianess bug

2012-02-29 Thread Dirk Eibach
--- src/journal/journal-file.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 20ca3f6..275caea 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -238,7 +238,7 @@ static int journal_fi

[systemd-devel] small implementation of systemd escaping

2012-02-29 Thread Manuel Amador (Rudd-O)
Feel free to add to systemd under whatever license you choose. I use it for my generators in ZFS. ---systemdescaper.c- #include int main ( int argc, char ** argv) { if (argc != 3) { fprintf(stderr,"usage: --escape \

Re: [systemd-devel] customized shutdown service needed

2012-02-29 Thread Manuel Amador
The key thing is the TimeoutSec. without that, systemd just gives up after a few seconds and SIGKILLs everything. On Tuesday, February 28, 2012 20:37:14 Burkhard Kayser wrote: Hi I tried as well the following configuration. My script shall be started before ANY other service is shut down. Sto