root: use single action to reload services

This commit is contained in:
lelgenio 2021-06-17 19:13:45 -03:00
parent cbd8c3d8a0
commit 6b10ea91b1
1 changed files with 5 additions and 6 deletions

View File

@ -27,11 +27,10 @@ actions:
pacman_install: |
pacman-key --init
pacman-key --populate
elogind_install: >
{
sv restart elogind ||
rc-service elogind restart
} < /dev/null & disown
sv_update: |
{%@@ set key = "{} _dotfile_key {}".format('{{@@', '@@}}') @@%}
sv restart {{@@ key @@}} ||
rc-service {{@@ key @@}} restart
@ -49,7 +48,7 @@ dotfiles:
src: elogind.conf
dst: /etc/elogind/logind.conf
actions:
- elogind_install
- sv_update
grub:
src: grub