mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Gentoo now checks for services enabled
This commit is contained in:
parent
9b8fdcf42d
commit
b16ed72e13
1 changed files with 15 additions and 0 deletions
|
@ -3515,6 +3515,21 @@ install_gentoo_restart_daemons() {
|
|||
done
|
||||
}
|
||||
|
||||
install_gentoo_check_services() {
|
||||
if [ ! -d "/run/systemd/system" ]; 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
|
||||
}
|
||||
#
|
||||
# End of Gentoo Install Functions.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue