3
I'd like to edit a systemd's unit file from a shell script. I want to change the unit's only ExecStart line. Using systemctl edit
looks smart to me, but the command needs an editor set as SYSTEMD_EDITOR
environment variable. Is there any SYSTEMD_EDITOR
alternative which would be used like echo 'ExecStart=foo' | SYSTEMD_EDITOR=SOMETHING systemctl edit bar
?