Great Blog

12 Nov 2020

Systemctl edit stdin/file

Today I was finally able to figure out how to stdin from a file for systemctl edit :-)

env SYSTEMD_EDITOR=tee  sudo -E systemctl edit --system [your_unit_name] < [your_content_file]

I found it HERE.