Fix bug in re-writing config file.
Some work on restart facility.