From a4e03297c7e9632320f7d4ad6851ead8cce79eb3 Mon Sep 17 00:00:00 2001 From: Keenan Lang Date: Tue, 2 Jan 2024 17:40:34 -0600 Subject: [PATCH] remote restart wasn't calling stop --- iocBoot/iocxxx/softioc/commands/restart.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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");