]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: add a way to explicitly request client-side unit installing
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 14:15:38 +0000 (16:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 31 Oct 2015 18:09:20 +0000 (19:09 +0100)
commitb41b9d2ae9d1139a3d4d5eb7ad7b100ffa3ee6db
tree83e96ea1ee65e30b246985e90c80c2e525e6d9a2
parent534e8f89d6367cd0e9e17fff67880fb430071d01
systemctl: add a way to explicitly request client-side unit installing

This adds support for a new environment variable
SYSTEMCTL_INSTALL_CLIENT_SIDE, that ensures that systemctl executes
install operations client-side instead of passing them to PID1. This is
useful in debugging situations, but even beyond that. However, we don't
want to make it official API, hence let's just make it an undocumented
environment variable.

Similar, add a second variable, SYSTEMCTL_SKIP_SYSV which allows
skipping the SysV chkconfig fall-back if set. This is useful for similar
reasons, and exposed as undocumented as environment variable for similar
reasons, too.
src/basic/env-util.c
src/basic/env-util.h
src/systemctl/systemctl.c