Skip to content

Commit

Permalink
remote restart wasn't calling stop
Browse files Browse the repository at this point in the history
  • Loading branch information
keenanlang authored Jan 2, 2024
1 parent 522bdfe commit a4e0329
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iocBoot/iocxxx/softioc/commands/restart.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a4e0329

Please sign in to comment.