]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/install: do not print warning when a unit is already enabled
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 May 2016 21:02:55 +0000 (17:02 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 May 2016 19:17:57 +0000 (15:17 -0400)
commit8515830341a49a0af875333a1893a8aa41ee1099
tree32482978a8c6ca4d32e9d24f63ab5e9d9ff20866
parent893275df36c8c358d3c0b851ca255a6169dac138
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.
src/shared/install.c