[systemd-devel] Possible to build a dnssd client with systemd.

2022-11-30 Thread Stef Bon
Hi, I'm using the client library of avahi, and I want to build my own dnssd client. I'm using epoll in my eventloop, and never (tried several times) to make avahi work with my eventloop. Tried several times, following examples found in the documentation. Is this possible with systemd? S. Bon

[systemd-devel] Howto unshare when user session starts.

2024-02-21 Thread Stef Bon
Hi, maybe this is a question simple to answer. I want the user sessions to start in a {mount,user} namespace. How can I do this? I know there is the command systemd-nspawn. But to use this I have to adjust the first command to start a session. Or is it possible by setting parameters in logind? S

Re: [systemd-devel] Howto unshare when user session starts.

2024-02-21 Thread Stef Bon
Hi, I know that I can use a session file, and I know I can use a pamfile (I've written one myself) but what I want to know is how can I use systemd for that? Systemd handles the system, sessions and containers, so is it for example possible to set some parameters and make the pam module of systemd

Re: [systemd-devel] Howto unshare when user session starts.

2024-03-05 Thread Stef Bon
Thank you for your answer. Sorry for my late reaction. I've been ill for some weeks. You say that starting a new namespace might have problems with multithreaded programs (and which program isn't??). Can you explain why and where the problem occurs? Maybe a link with some context. Much appreciated

[systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
Hi, when I look at the function string_hashsum it looks like the context is not closed when done. After a succesfull gcry_md_open the hash context md should be closed when leaving this function. That does not happen. Stef ___ systemd-devel mailing list

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
2018-02-03 19:26 GMT+01:00 Stef Bon : > Hi, Oh and this in in file src/basic/gcrypt-util.c. > > Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
2018-02-03 20:27 GMT+01:00 : > > Nice catch, that indeed looks like a leak. Would you like to prep a > PR fixing it? > PR? I do not know what you mean. A pull request? I can write a patch. Stef ___ systemd-devel mailing list systemd-devel@lists.freed

Re: [systemd-devel] hash context not closed.

2018-02-03 Thread Stef Bon
The testing of the new code requires me too much (meson is required.. and I don't want to replace my existing systemd) and I do not expect to add more patches is near future. I've got a patch: diff --git a/src/basic/gcrypt-util.c b/src/basic/gcrypt-util.c index 1bfb77672..c7c07e3b7 100644 --- a/s

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
Same error here: (gcry_md_open without gcry_md_close) line 901 in src/resolve/resolved-dns-sec.c while in the same file at 1227 it's done the good way. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/

Re: [systemd-devel] hash context not closed.

2018-02-05 Thread Stef Bon
hi, maybe good to know that libgcrypt provides a function which offers "all in one": void gcry_md_hash_buffer (int algo, void *digest, const void *buffer, size_t length) digest can be an array created earlier using the function gcry_md_get_algo_dlen. Stef __

[systemd-devel] Suggestion for a system fs change notify service.

2018-07-15 Thread Stef Bon
ot of time to this issue. Maybe in future this service can also provide info about locking too. What do you think? Stef Bon ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Howto find sshfp records?

2018-07-22 Thread Stef Bon
Hi, I'm writing a ssh client, and I want it to be able to do a dns lookup of sshfp records. The ipv4 address is known, as wel as the hostname. I've found the code about resolving: https://www.freedesktop.org/wiki/Software/systemd/writing-resolver-clients/ How can I make it to find sshfp records?

Re: [systemd-devel] Howto find sshfp records?

2018-07-22 Thread Stef Bon
Op zo 22 jul. 2018 om 21:49 schreef Mantas MikulÄ—nas : > How can I make it to find sshfp records? >> > > From the same page, "Use ResolveRecord() in order to resolve arbitrary > resource records. The call will return the binary RRset data. This calls is > useful to acquire resource records for whi

Re: [systemd-devel] Howto find sshfp records?

2018-07-29 Thread Stef Bon
Hi, I cannot find a header file where DNS_TYPE_SSHFP is defined, only in the source tree of systemd. There should be a header file in /usr/include. Where can I find it? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://list

[systemd-devel] Suggestion for a lowlevel fsnotify change daemon.

2015-07-28 Thread Stef Bon
Hi all, for some time I have been looking at the issue why fsnotify does not work with network filesystems and FUSE (with a shared backend). I've found out that changes initiated on the localhost, on the filesystem are supported by the fs change subsystems on Linux, and events initiated at the ba

Re: [systemd-devel] Suggestion for a lowlevel fsnotify change daemon.

2015-07-28 Thread Stef Bon
s > there a reason why a user-space service is necessary? > Like I mentioned in the first post and here again, the filesystems like FUSE, NFS and CIFS (and other) are not "contacted" by fsnotify about a watch. This is by design. So if the kernel does not do this (and beleive me there are

Re: [systemd-devel] User sessions, session buses, user buses

2015-02-03 Thread Stef Bon
2015-01-30 9:30 GMT+01:00 Simon McVittie : > In principle, a PAM module or something could ensure that we have a > dbus-daemon per login session, even tty/ssh/cron login sessions > (which all go through PAM). In practice, nobody has ever cared enough to > implement this, so we're left with D-Bus au

[systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
Hi, sorry for the offtopic question here, but I do not know a better place for it. I'm building a lockmonitor. I thought that would be just as easy as with the /proc/self/mountinfo "file". But that is not the case. It's not pollable, like the mountinfo fle is. I've looked into the code of the ke

Re: [systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
You are sure?? I mean the locks file, not the mounts file. I think you haven't understood my post very good. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Offtopic question.

2013-01-02 Thread Stef Bon
No problem. Just a misunderstading or how you want to call it. Stef 2013/1/2 Dave Reisner > > On Jan 2, 2013 5:41 PM, "Stef Bon" wrote: > > > > You are sure?? I mean the locks file, not the mounts file. > > I think you haven't understood my post ver

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Well, I'm working on notifyfs, a fuse fs which is a cache for gui clients and a filesystem event notifier. It uses inotify on linux to notify clients about changes. I want to be complete and add information about locks as well (new, changed and removed). On the localhost this requires monitoring th

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
Yes, thanks a lot. I've read it, understood, maybe this whole locking thing should be replaced with a better approach. First you mention in the first blog entry: "Mandatory locking is available too. It's based on the POSIX locking API but not portable in itself. It's dangerous business and should

Re: [systemd-devel] Offtopic question.

2013-01-03 Thread Stef Bon
2013/1/3 Kay Sievers > > FWIW, adding poll() support would look like something like this: > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commitdiff;h=66d7dd518ae413a383ab2c6c263cc30617329842 > > Kay > Thanks a lot. I will try to write a patch with it, although the way linux h

Re: [systemd-devel] Offtopic question.

2013-01-04 Thread Stef Bon
Hi, I've read about the possible bugs. About the combination between mmap and mandatory locks: of course the mapping of memory is causing troubles when a mandatory lock is set. The mapped region should or forward the lock to the new memory location (where remapped) or the mmap should be denied, un

[systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Hi, I'm experimenting with the plugable ud-160-A as seat extender. I'm borrowing it from Hans de Goede. Now it works very good, only with new monitors using the newest EDID technique it blocks. Hans has already posted a patch. But with an older monitor it works great!! Now I would like contribu

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Lennart wrote here: http://0pointer.de/blog/projects/multi-seat.html (Later on we'll probably have a graphical setup utility for additional seats, but that's not a pressing issue we believe, as the plug-n-play multi-seat support with the Plugable devices is so awesomely nice.) Fourth alinea. A

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-21 Thread Stef Bon
Hi, First I'm talking about ud-160-A. Second the patch: https://bugzilla.redhat.com/show_bug.cgi?id=894299 It's a patch for the displaylink driver. Third: have you tried to connect the monitor using the vga adapter? That should work. Stef And please do not mail to a lot of people. That does

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-23 Thread Stef Bon
Hi, Thanks what should the gui toolkit be? Gtk3? I prefer that over qt, which is not my favorite. And is there a location to store the project? I can of course get one at github or something like that, but maybe there is a better one? Stef ___ systemd

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-25 Thread Stef Bon
ears in the settings only for user on the seat0 if he/she is part of admin group c. when the choice is "overtake seat0" the "set behaviour extra seats" dialog will only appear after the first docking station is plugged in. d. in the menu, somewhere at settings

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-27 Thread Stef Bon
2013/1/25 Zbigniew Jędrzejewski-Szmek > On Fri, Jan 25, 2013 at 02:59:34PM +0100, Stef Bon wrote: > > 1. When dealing with a docking station (like those from plugable) on a > > laptop, the reason the user wants to use it, is to use a bigger screen > and > > a "real

Re: [systemd-devel] Someone working on gui for multiseat?

2013-01-29 Thread Stef Bon
Defaults? No I don't think so. I think this is a discussion about flexibility and let users decide what to do with these devices. Right now in the 71-seat.rules : # 'Plugable' USB hub, sound, network, graphics adapter SUBSYSTEM=="usb", ATTR{idVendor}=="2230", ATTR{idProduct}=="000[13]", ENV{ID_AU

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-01 Thread Stef Bon
2013/1/29 Lennart Poettering > On Tue, 29.01.13 13:28, Stef Bon (stef...@gmail.com) wrote: > > to use an external textfile or db in combination with a specfic script > for > > this purpose?? > > It sounds as if you are asking for the for the udev hardware database > st

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-06 Thread Stef Bon
2013/2/4 Lennart Poettering : > On Fri, 01.02.13 10:27, Stef Bon (stef...@gmail.com) wrote: > >> I think I misunderstood the assigning of a device to a seat. >> The creation of a seat is not done by the udev rules, what I assumed >> first, > > It is done via

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-08 Thread Stef Bon
2013/2/8 Lennart Poettering : > On Wed, 06.02.13 14:24, Stef Bon (stef...@gmail.com) wrote: > >> Ok, when logind sends out a message (after seat added or removed) it's >> up to the services like gdm(?) what to do with it: use it as docking >> station or to start

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-11 Thread Stef Bon
2013/2/8 Lennart Poettering : > On Fri, 08.02.13 12:27, Stef Bon (stef...@gmail.com) wrote: > >> >> > No, udev contains the information which devices together make up a >> > seat. Hence, it is also udev where it is stored whether something is >> > used in

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-11 Thread Stef Bon
2013/2/11 Colin Guthrie : > 'Twas brillig, and Stef Bon at 11/02/13 08:45 did gyre and gimble: >>> >> Look this is getting us nowhere. >> >> You do not seem to understand my point. >> >> How does this rule look like? I'm asking because I can

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-12 Thread Stef Bon
2013/2/11 Lennart Poettering : > On Mon, 11.02.13 12:59, Stef Bon (stef...@gmail.com) wrote: > >> And since you say it's simple by just make the call, can you just >> describe what to do to make a plugable device like the UD-160-A/M turn >> into a dockingstation? >

[systemd-devel] Hoe is het met je?

2013-03-05 Thread Stef Bon
Hi, hoe is het met je? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Designing a scheduler interface

2011-04-18 Thread Stef Bon
t I'snt it a bit arrogant to think this? In my opinion people are can be disappointed by the way we are treated by another, not by what we do or don't. I've been called arrogant before, but you are really king here! Hale king Lennart! Stef Bon the Netherlands > Le

Re: [systemd-devel] Designing a scheduler interface

2011-04-19 Thread Stef Bon
ould be just: I cannot react right now, but this issue has my interest. I expect to react later.. In communication it's very important to treat each other with respect. As soccertrainer (and maybe soon teacher mathematics) I really think that's important when working together. Stef Bon

[systemd-devel] Howro install from source?

2011-06-03 Thread Stef Bon
Hi, I would like to try systemd on my machine. As someone who installs everything from source, I would like to do that also for systemd. I cannot find a guide anywhere to do this, as I expect a package as systemd requires more than just ./configure make make install some addition configuration i

Re: [systemd-devel] Howro install from source?

2011-06-03 Thread Stef Bon
Thanks, this is a good source of info. Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
Hi, I'm trying to build systemd on a shiny new LFS system. I roughly followed the instructions here: http://www.linuxfromscratch.org/lfs/view/development/index.html Since this is a very minimal system, you have to add extra software: gperf libcap attr expat libxml2 dbus No PAM, no gtk, no tcpw

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
Thanks a lot, And how do I select the services to be started at boot time?? I've seen lots of documentation, and possibly I did not read good enough. Stef 2011/6/20 Maarten Lankhorst : > Hey Stef, > sysv init is only used as compatibility. If you have no sysv init scripts, > nothing will be us

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
2011/6/20 Christian Hesse : > Stef Bon on Mon, 20 Jun 2011 15:15:57 +0200: >> Thanks a lot, >> >> >> And how do I select the services to be started at boot time?? >> >> I've seen lots of documentation, and possibly I did not read good >> en

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
2011/6/20 Marius Tolzmann : > Hi there.. > > we are also using a self-maintained LFS based gnu/linux here. > > we switched to systemd in Nov 2010 and it worked fine from the start.. > > since we started a new LFS we decided not to integrate any support for > sysv anymore by compiling systemd with >

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-20 Thread Stef Bon
2011/6/20 Marius Tolzmann : > Hi there.. > > we are also using a self-maintained LFS based gnu/linux here. > > we switched to systemd in Nov 2010 and it worked fine from the start.. What version are you using? And what version of kernel? Did you have to tune your kernel?? (for example devfs..) S

Re: [systemd-devel] Trying to build on a new LFS system.

2011-06-21 Thread Stef Bon
ted, status=0 Jun 21 18:33:17 systemd[1]: systemd-readahead-collect.service changed running -> exited Jun 21 18:33:17 systemd[1]: Accepted connection on private bus. Jun 21 18:33:17 systemd[1]: Got D-Bus request: org.freedesktop.systemd1.Agent.Released() on /org/freedesktop/systemd1/agent Jun 21

[systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-25 Thread Stef Bon
Hi, I've been able to make my shiny new LFS system boot using systemd, but still with errors. When the tty's are activated, Iget the message: stty: standard input: Inappropriate ioctl for device When I'm logged in, I see the various tty files have root:tty rights, but not tty1 - tty6, they have

Re: [systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-28 Thread Stef Bon
2011/6/27 Lennart Poettering : > On Sat, 25.06.11 21:57, Stef Bon (stef...@gmail.com) wrote: > >> Hi, >> >> I've been able to make my shiny new LFS system boot using systemd, but >> still with errors. When the tty's are activated, >> Iget the messa

Re: [systemd-devel] Error: inappropriate ioctl stty standard input

2011-06-29 Thread Stef Bon
2011/6/28 Stef Bon : > 2011/6/27 Lennart Poettering : >> On Sat, 25.06.11 21:57, Stef Bon (stef...@gmail.com) wrote: >> >>> Hi, >>> >>> I've been able to make my shiny new LFS system boot using systemd, but >>> still with errors. When the

Re: [systemd-devel] [HEADSUP] We no longer spawn 6 gettys by default

2011-06-29 Thread Stef Bon
Hi, I think it's ok to only activate the getty programs on demand. Maybe use only mingetty?? Who works on the serial line these days? mingetty is faster I would like to add the following: I had some trouble with logmessages on my screen while the login is there already. This has probably som

Re: [systemd-devel] [HEADSUP] We no longer spawn 6 gettys by default

2011-06-29 Thread Stef Bon
Ok, I did not expect this. Ok, stupid idea, forget it. But what about the "log console", redirecting log to one of the virtual consoles, reachable via alt-fx? Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedeskt

Re: [systemd-devel] [ANNOUNCE] systemd v30

2011-07-14 Thread Stef Bon
Hi, what I've read is great, about session support and multiseat. In my opinion the managment of seats and sessions always could be much better, and your work looks good. Futher it's smart to assign a usb hub to a certain seat and let all devices connected be part of the same seat. In practice th

[systemd-devel] Howto run script at begin and end of session: sessionsupport?

2011-07-14 Thread Stef Bon
Hi, howdo I start scripts at the begin and end of a session?? I used ConsoleKit for that, which launched scripts it finds in /etc/ConsoleKit/run-session.d Stef ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop

Re: [systemd-devel] Howto run script at begin and end of session: sessionsupport?

2011-07-15 Thread Stef Bon
2011/7/15 Lennart Poettering : > On Fri, 15.07.11 08:24, Stef Bon (stef...@gmail.com) wrote: > >> >> /etc/ConsoleKit/run-session.d > > We currently don't support this in systemd, and right now I see no good > usecase that might convince us to add that. > > C

[systemd-devel] Error pam_systemd.

2011-07-25 Thread Stef Bon
It looks as if the system dbus is not started at this moment. Anyone has a hint? Stef Bon ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] Error pam_systemd.

2011-07-25 Thread Stef Bon
Yes, I've installed it on a LinuxFromScratch system, I've mentioned earleir. I've solved it, indeed the rebuild of dbus with the right parameter was required. That solved it. Stef Bon 2011/7/25 Lennart Poettering : > On Mon, 25.07.11 13:27, Stef Bon (stef...@gmail.com) w

[systemd-devel] namespace: session dependant mtab

2011-08-03 Thread Stef Bon
Hi all, I've been looking into how namespaces work, shared mounted subtrees and user namespaces using PAM. My own construction is using a FUSE filesystem, some bind mounts of system directories and (still) pam_chroot. and looking to switch to use pam_namespace. Anyhowe, I see that with using dif

Re: [systemd-devel] namespace: session dependant mtab

2011-08-03 Thread Stef Bon
2011/8/3 Kay Sievers : > On Wed, Aug 3, 2011 at 16:07, Stef Bon wrote: >> Isn't it a good idea to provide every different namespace a own mtab, >> containing only the mounts visible for that namespace? > > You mean /etc/mtab? Systemd requires that to be symlink to >

[systemd-devel] Question about nspawn.c

2011-08-22 Thread Stef Bon
it confucing, since a move of the root, while the subirectories are already mounted. It looks more a bit to make the new namespace consistent or something like that. Can someone explain this? Thanks in advance. Stef Bon the Netherlands btw I know what a bind mount is, but the combination M

Re: [systemd-devel] Question about nspawn.c

2011-08-24 Thread Stef Bon
Poettering : > On Mon, 22.08.11 16:15, Stef Bon (stef...@gmail.com) wrote: > >> Why the combination MS_BIND | MS_MOVE here?? >> A move is a little bit confucing, since a move of the root, while the >> subirectories are already mounted. >> It looks more a bit to make t

Re: [systemd-devel] Question about nspawn.c

2011-08-24 Thread Stef Bon
about, using arg_directory A bind mount I can understand, but a move?? Moving the root to arg_directory will overwrite the just created mounts done in line 759? These mounts are created in this namespace... Stef 2011/8/24 Lennart Poettering : > On Wed, 24.08.11 11:41, Stef Bon (stef...@gmail.co

Re: [systemd-devel] Question about nspawn.c

2011-08-24 Thread Stef Bon
2011/8/24 Lennart Poettering : > On Wed, 24.08.11 14:38, Stef Bon (stef...@gmail.com) wrote: > >> >> Please let me explain why I think this is strange to me: >> >> in line 713 there is a call to clone, so here the cloned child process >> has it's own name

[systemd-devel] New pam module to start a session.

2011-10-14 Thread Stef Bon
Hi, I've rewritten an existing pam module pam_script. What it does: . runs a script . unshare the mount namespace (if configured, default yes) if the directory to chroot to is specfied it does also: . mount all the required directories like bin, lib, usr etcetera. . chroot to this directory Se

Re: [systemd-devel] New pam module to start a session.

2011-10-15 Thread Stef Bon
No I didn't. I will post it on the pam maillist, see what they think of it. Stef 2011/10/14 Daniel J Walsh : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 10/14/2011 04:34 AM, Stef Bon wrote: >> Hi, >> >> I've rewritten an existing pam module

[systemd-devel] Status multiseat?

2011-12-05 Thread Stef Bon
Hi, I'm informing the status of multiseat. I've read here: http://fedoraproject.org/wiki/Features/ckremoval that there is worked on automatic detection of multiseat. Some notes: . automatic is only possible for local seats . maximum local seats is the minimum of terminals and keyboards (=N)

Re: [systemd-devel] RFC: User sessions in systemd: `systemd --user` - code and experiences

2012-04-14 Thread Stef Bon
2012/4/13 Kok, Auke-jan H : > All, > > As some of you might know, I've been working on integrating systemd in > Tizen. While currently the Tizen OS is still using sysvinit, we hope > to merge systemd in the near future and even expand the use of systemd > throughout the system beyond what systemd c

[systemd-devel] About autofs: no handling of expire??

2012-05-01 Thread Stef Bon
Hi, I've been looking into the code how systemd handles the automounting. I've got two issues: a. I've found the handling of the "missing" packet (autofs_ptype_missing_direct), which triggers the mounting. But I did not found the handling of the expire packet (autofs_ptype_expire_direct). Is thi

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/4/29 Nikolaus Rath : > Hello, > > I am struggling to come up with the correct way to define a unit > configuration for a FUSE based network file system. > > Generally, the file system needs to be mounted and unmounted with its > own programs (rather than with mount and umount). The main reason

Re: [systemd-devel] About autofs: no handling of expire??

2012-05-02 Thread Stef Bon
o write my own autofs implementation using FUSE. The FUSE fs will somehow be what now is the "browseable" map with indirect maps with the automounter, and somehow I have to find a way to make a specific directory a direct autofs mountpoint. Thanks, Stef Bon _

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/5/2 Nikolaus Rath : > On 05/02/2012 03:53 PM, Lennart Poettering wrote: >> On Sat, 28.04.12 20:41, Nikolaus Rath (nikol...@rath.org) wrote: >> automatically, without any manual kludges. We won't support any other >> hacks in systemd. Sorry. > > > Ah, ok. Mounting with /bin/mount -t works just

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-03 Thread Stef Bon
2012/5/3 Nikolaus Rath : > Stef Bon writes: >> That's why I advise to use a pidfile systemd can watch. > > I believe one of systemd's design goals is to actually get rid of pid > files and related hacks. If I want to use systemd with a pidfile, I may > just

Re: [systemd-devel] Ubuntu, Upstart, and systemd

2012-05-10 Thread Stef Bon
o improve , maybe Shuttleworth means something else. It's better to try to start a contact him (and the team he refers to) than go into one subject he mentions, to check what he means. I can imagine something of what he describes, but I cannot speak for him. St

[systemd-devel] Howto detect a session start (and end) with systemd?

2012-06-25 Thread Stef Bon
Hi, I'm working on a construction which creates "workspaces" for a user when he/she logs in. These workspaces are directories with vritual directories managed by a FUSE fs, with access to mountable resources like harddisks, usb sticks, cdroms but also network services like smb shares. In practic

Re: [systemd-devel] Howto detect a session start (and end) with systemd?

2012-06-30 Thread Stef Bon
Yes, thank you. It looks like a can use that. It just provides what I need. The monitor sd_login_monitor can provide a fd. What happens with this fd? Is there data readable? Stef 2012/6/27 David Herrmann : > Hi Stef > > On Mon, Jun 25, 2012 at 11:27 AM, Stef Bon wrote: >>

Re: [systemd-devel] Howto detect a session start (and end) with systemd?

2012-06-30 Thread Stef Bon
Ok, forget last message. I've found test-login.c, which gives all answers. Stef 2012/6/30 Stef Bon : > Yes, > > thank you. It looks like a can use that. It just provides what I need. > > The monitor sd_login_monitor can provide a fd. What happens with this > fd? Is there

[systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
Hi, I'm implementing the sd_get_uids function in my app. It basically reads the directory /run/systemd/users. I do not know, is this list already sorted?? this is the same question as is the readdir function "sort" sensitive? If not, I have to add a sort function. Stef __

Re: [systemd-devel] sd_get_uids gives a sorted list?

2012-07-26 Thread Stef Bon
2012/7/26 Kay Sievers : > On Thu, Jul 26, 2012 at 2:16 PM, Stef Bon wrote: >> I'm implementing the sd_get_uids function in my app. It basically >> reads the directory /run/systemd/users. >> I do not know, is this list already sorted?? this is the same question >>

Re: [systemd-devel] Howto detect a program/service is started by systemd?

2025-07-16 Thread Stef Bon
Hi all, I understand. I've added some arguments like --fork and --socketactivation and those work. Also found, but you probably already know: https://stackoverflow.com/questions/61753655/is-forking-in-a-daemon-still-necessary-when-using-systemd Thanks all, S. Bon

[systemd-devel] Help with making socket activation work.

2025-06-27 Thread Stef Bon
Hi, I've got a system daemon, and I want to make use of socket activation. It has a socket /run/osns/system.sock, where clients belonging to user sessions can connect to. What I've tried I do not get it to work. It used to fork, and the forked process created the socket. I've changed this using t

Re: [systemd-devel] Help with making socket activation work.

2025-06-27 Thread Stef Bon
Op vr 27 jun 2025 om 15:23 schreef Andrei Borzenkov : > > > How do you expect this environment variable to change? It was set when > systemd invoked your program. How systemd is supposed to change the > value of this variable inside already started process? How systemd is > supposed to predict th

[systemd-devel] Howto detect a program/service is started by systemd?

2025-06-30 Thread Stef Bon
Hi, it's important for a program to detect it has been started by systemd. For example it does not have to fork since it has already been forked. I've written a test script, which calls env, and there are a few unique environment variables which are an indication it has been started by systemd: S

Re: [systemd-devel] Help with making socket activation work.

2025-06-27 Thread Stef Bon
Yes I see. I understand now. I think - as you suggest - it's best to stop the service from forking if started by systemd. S. Bon

Re: [systemd-devel] Help with making socket activation work.

2025-06-29 Thread Stef Bon
Hi, it is working now. I've disabled the forking of my service. I think that in general services started by systemd or any other service manager do not have to fork: they are already forked/exec. Thanks, S. Bon

Re: [systemd-devel] Howto detect a program/service is started by systemd?

2025-08-05 Thread Stef Bon
Hi all, the issue was answered some weeks ago. Please do not react anymore. S. Bon