What do bindpaths and bindreadonlypaths do in systemd?

What do bindpaths and bindreadonlypaths do in systemd?

BindPaths= creates regular writable bind mounts (unless the source file system mount is already marked read-only), while BindReadOnlyPaths= creates read-only bind mounts. These settings may be used more than once, each usage appends to the unit’s list of bind mounts.

When is a missing working directory not fatal?

If the setting is prefixed with the ” – ” character, a missing working directory is not considered fatal. If RootDirectory= / RootImage= is not set, then WorkingDirectory= is relative to the root of the system running the service manager.

Are there valid partition names for systemd.exec?

Valid partition names follow the Discoverable Partitions Specification : root, usr, home, srv , esp, xbootldr, tmp , var. This option is only available for system services and is not supported for services running in per-user instances of the service manager.

Where are the execution specific options in systemd?

The execution specific configuration options are configured in the [Service], [Socket], [Mount], or [Swap] sections, depending on the unit type. In addition, options which control resources through Linux Control Groups (cgroups) are listed in systemd.resource-control(5) .

How to troubleshoot DNS with systemd-resolved?

On older versions you might need to manually symlink it with the following: By default, systemd-resolved configures a local DNS server listening at 127.0.0.53 on port 53 and you can run lsof -i @127.0.0.53:53 to verify. Make sure you do not have any other service like dnsmasq listening to the same address and port.

What are the dependencies of systemd journald socket?

Units whose standard output or error output is connected to journal or kmsg (or their combinations with console output, see below) automatically acquire dependencies of type After= on systemd-journald.socket.