Changeset 19419


Ignore:
Timestamp:
Dec 18, 2018, 10:13:28 PM (6 months ago)
Author:
tbretz
Message:
Added an option to send the global shutdown (DIS_DNS/KILL_SERVERS)
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/StateMachineDimControl.cc

    r18971 r19419  
    621621        return !Dim::SendCommand(conf.Get<string>("restart")+"/EXIT", uint32_t(126));
    622622
     623    if (conf.Has("shutdown"))
     624        return !Dim::SendCommand("DIS_DNS/KILL_SERVERS", uint32_t(125));
     625
    623626    return -1;
    624627}
  • trunk/FACT++/src/dimctrl.cc

    r18821 r19419  
    5050            ("interrupt", var<string>()->implicit_value(""), "Send an interrupt request (IRQ) to a running JavaScript.")
    5151            ("restart", var<string>(), "Send 'EXIT 126' to the given server")
     52            ("shutdown", po_switch(), "Shutdown the whole network 'DIS_DNS/KILL_SERVERS'")
    5253            ("msg",     var<string>(), "Send a message to the chat server.")
    5354            ;
Note: See TracChangeset for help on using the changeset viewer.