Merge "debian: Centrally manage pre-start services"
This commit is contained in:
commit
3509c9fbb5
@ -1991,15 +1991,31 @@ if [ "${aio}" = true ] ; then
|
||||
ilog "${SYSTEM_TYPE__AIO} System"
|
||||
system_type="${SYSTEM_TYPE__AIO}"
|
||||
subfunction="${SUBFUNCTION__AIO}"
|
||||
if [ "${lowlatency}" = true ] ; then
|
||||
ilog "Setting aio lowlatency"
|
||||
ln -s /usr/share/systemd-presets/lowlatency.preset /etc/systemd/system-preset/10-aio.preset
|
||||
else
|
||||
ln -s /usr/share/systemd-presets/aio.preset /etc/systemd/system-preset/10-aio.preset
|
||||
fi
|
||||
else
|
||||
ilog "${SYSTEM_TYPE__STANDARD} System"
|
||||
system_type="${SYSTEM_TYPE__STANDARD}"
|
||||
if [ "${worker}" = true ] ; then
|
||||
subfunction=${SUBFUNCTION__WORKER}
|
||||
if [ "${lowlatency}" = true ] ; then
|
||||
ilog "Setting ${SUBFUNCTION__WORKER} lowlatency"
|
||||
ln -s /usr/share/systemd-presets/worker-lowlatency.preset /etc/systemd/system-preset/10-${SUBFUNCTION__WORKER}.preset
|
||||
else
|
||||
ln -s /usr/share/systemd-presets/worker.preset /etc/systemd/system-preset/10-${SUBFUNCTION__WORKER}.preset
|
||||
fi
|
||||
elif [ "${storage}" = true ] ; then
|
||||
subfunction=${SUBFUNCTION__STORAGE}
|
||||
ilog "Setting ${SUBFUNCTION__STORAGE} preset"
|
||||
ln -s /usr/share/systemd-presets/storage.preset /etc/systemd/system-preset/10-${SUBFUNCTION__STORAGE}.preset
|
||||
else
|
||||
subfunction=${SUBFUNCTION__CONTROLLER}
|
||||
ilog "Setting ${SUBFUNCTION__CONTROLLER} preset"
|
||||
ln -s /usr/share/systemd-presets/controller.preset /etc/systemd/system-preset/10-${SUBFUNCTION__CONTROLLER}.preset
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -2024,6 +2040,10 @@ subfunction=${subfunction}
|
||||
system_type=${system_type}
|
||||
EOF
|
||||
|
||||
ilog "Create systemd presets and set personality traits"
|
||||
systemctl daemon-reload
|
||||
systemctl --preset-mode=full preset-all
|
||||
|
||||
##############################################################
|
||||
# From post_pxeboot_controller
|
||||
# From post_net_common.cfg
|
||||
|
Loading…
x
Reference in New Issue
Block a user