mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Added start daemons function support to Arch installations.
This commit is contained in:
parent
821182df50
commit
427ad264d6
1 changed files with 18 additions and 3 deletions
|
@ -1185,11 +1185,10 @@ install_arch_post() {
|
|||
)
|
||||
sleep 0.1
|
||||
/usr/bin/systemctl daemon-reload
|
||||
sleep 0.1
|
||||
/usr/bin/systemctl try-restart salt-$fname.service
|
||||
continue
|
||||
fi
|
||||
/etc/rc.d/salt-$fname start &
|
||||
|
||||
# XXX: How do we enable old Arch init.d scripts?
|
||||
done
|
||||
}
|
||||
|
||||
|
@ -1221,6 +1220,22 @@ install_arch_git_post() {
|
|||
/etc/init.d/salt-$fname start &
|
||||
done
|
||||
}
|
||||
|
||||
install_arch_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
|
||||
|
||||
if [ -f /usr/bin/systemctl ]; then
|
||||
/usr/bin/systemctl try-restart salt-$fname.service
|
||||
continue
|
||||
fi
|
||||
/etc/rc.d/salt-$fname start &
|
||||
done
|
||||
}
|
||||
#
|
||||
# Ended Arch Install Functions
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue