Re: [systemd-devel] dbus activation service path

2020-01-27 Thread Simon McVittie
On Fri, 24 Jan 2020 at 23:27:20 +0200, Damian Ivanov wrote:
> I also have a question about dbus activation.
> Is there an environment variable or something to tell systemd/dbus-broker 
> to look in a specific path for dbus .service files?

The D-Bus Specification[1] says:

 On Unix systems, the session bus should search for .service files in
 $XDG_DATA_DIRS/dbus-1/services as defined by the XDG Base Directory
 Specification. Implementations may also search additional locations,
 with a higher or lower priority than the XDG directories.

so you should set the environment variables XDG_DATA_HOME and/or
XDG_DATA_DIRS, the same way you set those variables to influence the
search path for .desktop files. See [2] for more information.

If a piece of software that reads session service definition files does
not do this, please report that as a bug in that piece of software, using
its bug tracking system. In particular, if you believe dbus-broker has
a bug in this area, reporting it in flatpak's bug tracker is unlikely
to get it seen or fixed by dbus-broker developers.

smcv

[1] https://dbus.freedesktop.org/doc/dbus-specification.html
[2] https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] DevConf.CZ 2020 Systemd Meeting Notes

2020-01-27 Thread Anita Zhang
Hi everyone,

Here are some notes from the systemd meeting we had before DevConf.CZ.
We ran out of time before we could cover all the agenda items but I
hope you'll find the content available useful!

https://docs.google.com/document/d/1kXWfnVoYhiTyk4BaknDUde9vywi2lqd53Wu3bVYUMD0/edit?usp=sharing

Anita
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] elegant way to use a single mount unit file for multiple paths

2020-01-27 Thread François
Hi,

I’m not sure, but can’t systemd-tmpfiles get this sorted for you ?

See 
https://www.freedesktop.org/software/systemd/man/systemd-tmpfiles-setup.service.html

Good luck :-)

-- 
François


> Le 22 janv. 2020 à 18:59, Marcel Partap  a écrit :
> 
> Salut,
> for our live debian USB stick distro for students ( 
> https://github.com/fsfw-dresden/usb-live-linux ), we want to minimize on 
> flash writes by putting several paths into a tmpfs overlay. So there is a 
> pre-overlay@.service with
> 
>> [Unit]
>> Description=Prepare writable overlay on %f
>> DefaultDependencies=no
>> RequiresMountsFor=/run
>> 
>> [Service]
>> Type=oneshot
>> ExecStart=/bin/mkdir -p '/run%f'
>> ExecStart=/bin/mount -t tmpfs -o noatime tmpfs '/run%f'
>> ExecStart=/bin/mkdir -p '/run%f/work' '/run%f/rw'
> 
> and f.e. a var-lib-apt-lists.mount with
>> [Unit]
>> Description=tmpfs overlay of %f
>> Conflicts=umount.target
>> Wants=pre-overlay@%p.service
>> After=pre-overlay@%p.service
>> 
>> [Mount]
>> What=overlay
>> Type=overlay
>> Where=%f
>> Options=lowerdir=%f,upperdir=/run%f/rw,workdir=/run%f/work
>> 
>> [Install]
>> WantedBy=local-fs.target
> 
> Currently, the file is just cloned for multiple paths, which is working but 
> not very elegant. I tried changing it into an instanced unit file 
> tmpfs-overlay@.mount, which did not work ("Unit type mount cannot be 
> templated" in journal only, nothing from systemd-analyze verify or the 
> systemd.mount man page).. Neither did calling the file 
> tmpfs-overlay.mount.unit and symlinking to it as var-lib-apt-lists.mount, 
> var-cache-apt.mount etc.
> 
> So what would be a more elegant way to not have multiple copies of the very 
> same file?
> 
> Best Regards,
> #marcel
> ___
> systemd-devel mailing list
> systemd-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel