systemd service: add aliases option

This commit is contained in:
Nikolay Amiantov
2017-02-02 00:52:54 +03:00
parent dd934beb9f
commit 8ef14f80e3
3 changed files with 21 additions and 9 deletions
+7 -1
View File
@@ -159,7 +159,13 @@ rec {
fi
done
# Created .wants and .requires symlinks from the wantedBy and
# Create service aliases from aliases option.
${concatStrings (mapAttrsToList (name: unit:
concatMapStrings (name2: ''
ln -sfn '${name}' $out/'${name2}'
'') unit.aliases) units)}
# Create .wants and .requires symlinks from the wantedBy and
# requiredBy options.
${concatStrings (mapAttrsToList (name: unit:
concatMapStrings (name2: ''