systemd-systemctl-native: fixed systemctl wrapper's `disable' action

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Mario Domenech Goulart
2012-05-14 13:48:23 +00:00
committed by Koen Kooi
parent e08448f5f5
commit fa71878834
@@ -68,8 +68,8 @@ for service in $services; do
ln -s $service_file $ROOT/etc/systemd/system/$r.wants
echo "Enabled $service for $wanted_by."
else
rm -f $ROOT/etc/systemd/system/$r.wants/$service_file
rmdirs -p $ROOT/etc/systemd/system/$r.wants
rm -f $ROOT/etc/systemd/system/$r.wants/$service
rmdir --ignore-fail-on-non-empty -p $ROOT/etc/systemd/system/$r.wants
echo "Disabled $service for $wanted_by."
fi
done