config/functions: link systemd unit aliases

This commit is contained in:
Jonas Karlman 2016-12-27 21:40:37 +01:00
parent 9be1c9e49d
commit 319c60ff34

View File

@ -270,6 +270,11 @@ enable_service () {
fi
done
fi
for target in `grep '^Alias' $target_dir/$unit_dir/$unit | cut -f2 -d=` ; do
if [ -n "$target" ]; then
ln -sf ${unit} ${target_dir}/$unit_dir/${target}
fi
done
}
check_path() {