summaryrefslogtreecommitdiff
path: root/src/machine/machine.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-07 17:02:55 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-05-09 15:17:57 -0400
commit8515830341a49a0af875333a1893a8aa41ee1099 (patch)
tree32482978a8c6ca4d32e9d24f63ab5e9d9ff20866 /src/machine/machine.c
parent893275df36c8c358d3c0b851ca255a6169dac138 (diff)
shared/install: do not print warning when a unit is already enabled
Executing 'systemctl enable' on the same unit twice would cause a warning about a missing [Install] section to be printed. To avoid this, count all symlinks that "would" be created, and return 1 no matter if we actually created a symlink or skipped creation because it already exists.
Diffstat (limited to 'src/machine/machine.c')
0 files changed, 0 insertions, 0 deletions