Re: [systemd-devel] sd_listen_fds: find file descriptor

2011-12-15 Thread Zbigniew Jędrzejewski-Szmek
On 12/15/2011 07:53 PM, Michael D. Berger wrote: [...] Hmm? You should usually consume all fds you get passed. And if you cannot handle more than one, then exit quickly with an error message. And if any of the fds is invalid, then print an error message and leave, too. This is what I'd usually

Re: [systemd-devel] sd_listen_fds: find file descriptor

2011-12-15 Thread Michael D. Berger
[...] > > Hmm? You should usually consume all fds you get passed. And > if you cannot handle more than one, then exit quickly with an > error message. And if any of the fds is invalid, then print > an error message and leave, too. > > This is what I'd usually use: > > > int fd, n; > > n = s

Re: [systemd-devel] getty login prompt

2011-12-15 Thread Lennart Poettering
On Mon, 28.11.11 10:12, Devendra Talegaonkar ([email protected]) wrote: > > Michael, > Thanks for reply. > I am using kernel version 2.6.38 and after objdump, I could see the code for > accept4 in libc as well. > But still problem persists. You need to make sure that the ac

Re: [systemd-devel] Patch: fix generator for cryptoloop

2011-12-15 Thread Frederic Crozat
Le jeudi 15 décembre 2011 à 16:57 +0100, Lennart Poettering a écrit : > On Thu, 15.12.11 16:21, Frederic Crozat ([email protected]) wrote: > > > > > Le jeudi 15 décembre 2011 à 16:11 +0100, Lennart Poettering a écrit : > > > On Thu, 08.12.11 13:55, Frederic Crozat ([email protected]) wrote: > > >

Re: [systemd-devel] Patch: fix generator for cryptoloop

2011-12-15 Thread Lennart Poettering
On Thu, 15.12.11 16:21, Frederic Crozat ([email protected]) wrote: > > Le jeudi 15 décembre 2011 à 16:11 +0100, Lennart Poettering a écrit : > > On Thu, 08.12.11 13:55, Frederic Crozat ([email protected]) wrote: > > > > > Hi, > > > > > > when cryptoloop files are present in /etc/crypttab, systemd

Re: [systemd-devel] Cannot make java exit 0 on SIGTERM

2011-12-15 Thread Lennart Poettering
On Mon, 28.11.11 15:12, Chris Paulson-Ellis ([email protected]) wrote: > Hi, > > I'm running a Java JVM service using: > > ExecStart=/usr/bin/java -jar foo.jar > > When I stop the service with systemctl, it goes into the failed > state because the JVM exits with status 143 instead of 0. > > The

Re: [systemd-devel] Difference between After and RequiredBy

2011-12-15 Thread Lennart Poettering
On Tue, 29.11.11 11:19, Edward Z. Yang ([email protected]) wrote: > Hello folks, > > On this ticket [1], we're attempting to figure out what > the relationship between services like httpd.service and remote-fs.target > are. One particular point of contention is this: what is the > difference betwee

Re: [systemd-devel] self domuneting and customizable

2011-12-15 Thread Lennart Poettering
On Fri, 02.12.11 19:10, Wouter De Borger ([email protected]) wrote: > Hi all, > > I'm just learning to know systemd and it seems very nice, but I have > one question/consideration. > > System V init scripts are self documenting and customizable: they are > scripts. It is easy to read and edit

Re: [systemd-devel] Patch: fix generator for cryptoloop

2011-12-15 Thread Frederic Crozat
Le jeudi 15 décembre 2011 à 16:11 +0100, Lennart Poettering a écrit : > On Thu, 08.12.11 13:55, Frederic Crozat ([email protected]) wrote: > > > Hi, > > > > when cryptoloop files are present in /etc/crypttab, systemd is not > > correctly creating dependencies for mounting them. Attached patch fixe

Re: [systemd-devel] WorkingDirectory for user units

2011-12-15 Thread Lennart Poettering
On Sat, 03.12.11 16:52, Ran Benita ([email protected]) wrote: > I don't think there's a way to do it. I looked into either > - making the home directory the default working directory (for user's >systemd) > - adding a %~ format specifier > - or maybe both? I prefer %~ (or actually %h, see o

Re: [systemd-devel] Patch: fix generator for cryptoloop

2011-12-15 Thread Lennart Poettering
On Thu, 08.12.11 13:55, Frederic Crozat ([email protected]) wrote: > Hi, > > when cryptoloop files are present in /etc/crypttab, systemd is not > correctly creating dependencies for mounting them. Attached patch fixes > this issue. Hmm, cryptoloop? Isn't this kinda obsolete? Can't dm-crypt handle

Re: [systemd-devel] [PATCH] unit: add specifiers for user name and home directory

2011-12-15 Thread Lennart Poettering
On Fri, 09.12.11 03:00, Ran Benita ([email protected]) wrote: > +_username = username; > +r = get_user_creds(&_username, &uid, &gid, &home); > +free(username); > +if (r) > +return NULL; > + > +/* specifier == '~' */ Do we really want '~' here

Re: [systemd-devel] [PATCH v2] rpcbind: add support for systemd socket activation

2011-12-15 Thread Lennart Poettering
On Wed, 07.12.11 16:18, Tom Gundersen ([email protected]) wrote: > Making rpcbind sockect activated will greatly simplify > its integration in systemd systems. In essence, other services > may now assume that rpcbind is always available, even during very > early boot. This means that we no longer need

Re: [systemd-devel] sd_listen_fds: find file descriptor

2011-12-15 Thread Lennart Poettering
On Wed, 14.12.11 13:28, Michael D. Berger ([email protected]) wrote: > I quote the man page: > > Otherwise the number of file descriptors passed is returned. The > application may find them starting with file descriptor > SD_LISTEN_FDS_START, i.e. file descriptor 3 > > For example, assum

Re: [systemd-devel] meaning of =-

2011-12-15 Thread Lennart Poettering
On Wed, 14.12.11 22:11, Michael D. Berger ([email protected]) wrote: > It is in" man systemd.service". I see it documented > only for ExecStart, but grep shows it used for other > things also. I assume it means the same thing. > Perhaps a little doc fix is needed? Well, yeah, I kinda hoped t