mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
9e5545876e
The example of starting memfd-bind via systemd in README did not work for me (Fedora 40, systemd 255): # systemctl status memfd-bind@/usr/bin/runc Invalid unit name "memfd-bind@/usr/bin/runc" escaped as "memfd-bind@-usr-bin-runc" (maybe you should use systemd-escape?). ○ memfd-bind@-usr-bin-runc.service Loaded: bad-setting (Reason: Unit memfd-bind@-usr-bin-runc.service has a bad unit file setting.) Active: inactive (dead) Docs: https://github.com/opencontainers/runc So, let's use systemd-escape -p ("path") in the README example, and use %f in the systemd unit file to prepend the slash to the filename. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
12 lines
218 B
Desktop File
12 lines
218 B
Desktop File
[Unit]
|
|
Description=Manage memfd-bind of %f
|
|
Documentation=https://github.com/opencontainers/runc
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=memfd-bind "%f"
|
|
ExecStop=memfd-bind --cleanup "%f"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|