]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: add "edit --stdin"
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 2 Dec 2023 15:25:15 +0000 (16:25 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Dec 2023 17:47:19 +0000 (18:47 +0100)
commit329050c5e2c7e9561699f87b5edb72edd0d54c96
treeab988f2bdfca93855b95a42791510b5e59ffb6e3
parent232f017b1a879c4d099dcbb644f60e44ae2b8dbf
systemctl: add "edit --stdin"

This is a fancy wrapper around "cat <<EOF", but:
- the user doesn't need to figure out the file name,
- parent directories are created automatically,
- daemon-reload is implied,
so it's a convenient way to create units or drop-ins.

Closes https://github.com/systemd/systemd/issues/21862.
man/systemctl.xml
src/shared/edit-util.c
src/shared/edit-util.h
src/systemctl/systemctl-edit.c
src/systemctl/systemctl.c
src/systemctl/systemctl.h