Anyway, I think that this function can be rewritten to:
```
if( IsActive() && !Modified())
{
     // reload may be unsupported
     RunSystemCtl ("network", "reload-or-try-restart");
}
else
{
    Restart();
}