diff --git a/iocBoot/iocxxx/softioc/commands/restart.pm b/iocBoot/iocxxx/softioc/commands/restart.pm index 6c43141..e81fae5 100644 --- a/iocBoot/iocxxx/softioc/commands/restart.pm +++ b/iocBoot/iocxxx/softioc/commands/restart.pm @@ -8,7 +8,12 @@ use _commands; sub _local { if (! _info::ioc_up()) { print("IOC isn't running\n"); } - elsif (_info::has_remote()) { _info::send_cmd("COMMAND", "start"); } + elsif (_info::has_remote()) + { + _info::send_cmd("COMMAND", "stop"); + sleep(1); + _info::send_cmd("COMMAND", "start"); + } else { _commands::call("_local", "stop");