mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Arch now checks for enabled services
This commit is contained in:
parent
61d2b489ed
commit
a67f57b980
1 changed files with 16 additions and 0 deletions
|
@ -2671,6 +2671,22 @@ install_arch_linux_restart_daemons() {
|
|||
/etc/rc.d/salt-$fname start
|
||||
done
|
||||
}
|
||||
|
||||
install_arch_check_services() {
|
||||
if [ ! -f /usr/bin/systemctl ]; then
|
||||
# Not running systemd!? Don't check!
|
||||
return 0
|
||||
fi
|
||||
|
||||
for fname in minion master syndic; do
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $_INSTALL_MINION -eq $BS_FALSE ] && continue
|
||||
[ $fname = "master" ] && [ $_INSTALL_MASTER -eq $BS_FALSE ] && continue
|
||||
[ $fname = "syndic" ] && [ $_INSTALL_SYNDIC -eq $BS_FALSE ] && continue
|
||||
__check_services_systemd salt-$fname || return 1
|
||||
done
|
||||
return 0
|
||||
}
|
||||
#
|
||||
# Ended Arch Install Functions
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue