chiark / gitweb /
systemctl: add edit verb
authorRonny Chevalier <chevalier.ronny@gmail.com>
Wed, 29 Oct 2014 15:22:02 +0000 (16:22 +0100)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 29 Nov 2014 18:28:14 +0000 (19:28 +0100)
commit7d4fb3b1c5ec7a117bd5a36e4591819a64e00136
tree709f0d9e894b078ded96a135d06b64887ddf88f7
parent507e28d844e335fe9fc84b549577fcce398f3a5d
systemctl: add edit verb

It helps editing units by either creating a drop-in file, like
/etc/systemd/system/my.service.d/override.conf, or by copying the
original unit from /usr/lib/systemd/ to /etc/systemd/ if the --full
option is specified.

It invokes an editor on temporary files related to the unit files and
if the editor exited successfully, then it renames the temporary files
to their original names (e.g. my.service or override.conf) and
daemon-reload is invoked.

If the temporary file is empty the modification is canceled.

See https://bugzilla.redhat.com/show_bug.cgi?id=906824
TODO
man/less-variables.xml
man/systemctl.xml
src/systemctl/systemctl.c