mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Added start daemons function support to Fedora git installations.
This commit is contained in:
parent
ac281ec161
commit
f5db3710b8
1 changed files with 11 additions and 1 deletions
|
@ -833,7 +833,17 @@ install_fedora_git_post() {
|
|||
systemctl is-enabled salt-$fname.service || (systemctl preset salt-$fname.service && systemctl enable salt-$fname.service)
|
||||
sleep 0.1
|
||||
systemctl daemon-reload
|
||||
sleep 0.1
|
||||
done
|
||||
}
|
||||
|
||||
install_fedora_git_start_daemons() {
|
||||
for fname in minion master syndic; do
|
||||
|
||||
# Skip if not meant to be installed
|
||||
[ $fname = "minion" ] && [ $INSTALL_MINION -eq 0 ] && continue
|
||||
[ $fname = "master" ] && [ $INSTALL_MASTER -eq 0 ] && continue
|
||||
[ $fname = "syndic" ] && [ $INSTALL_SYNDIC -eq 0 ] && continue
|
||||
|
||||
systemctl try-restart salt-$fname.service
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue