Skip to content
Snippets Groups Projects
Commit 1acdd802 authored by Erik von Reis's avatar Erik von Reis
Browse files

rtcds Remove unneeded checks for starting and stopping models.

If models are already started when requested to start, there's no need to check. Systemd won't mind another request to start.
Removing these checks allows the user to specify a list of models to start, stop or restart, and not have to worry if some of them are already
in the requested state.
parent c84fa4f8
No related branches found
No related tags found
1 merge request!274rtcds improvements
......@@ -5,6 +5,7 @@ Changes for NEXT
- Fixed virtualIOP parameter. Virtual IOPs now build and run.
- Fixed bug that leads to incorrect ordering of calculations, adding unneeded latency.
- 'rtcds restart --all' fixed to also restart IOP model.
- rtcds will now start every model listed on the command line even if some models are already started
==================================================================================================
Changes for 4.2.3
==================================================================================================
......
......@@ -632,7 +632,6 @@ case $cmd in
if [[ -n $ALL_FLAG ]] ; then
start_sys $(list_host_sys)
elif [[ $1 ]] ; then
check_host_sys_inactive $@
start_sys $@
else
log "You must specify at least one system to start (or '--all')."
......@@ -645,7 +644,6 @@ case $cmd in
stop_sys $(list_host_sys | tac)
start_sys $(list_host_sys)
elif [[ $1 ]] ; then
check_host_sys_active $@
stop_sys $@
start_sys $@
else
......@@ -658,7 +656,6 @@ case $cmd in
# we do this in reverse so the IOP is stopped last
stop_sys $(list_host_sys | tac)
elif [[ $1 ]] ; then
check_host_sys_active $@
stop_sys $@
else
log "You must specify at least one system to stop (or '--all')."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment