The semicolon at the end of this function stops it compiling.
The `"-daemon"` argument to `xe-tooolstack-restart` won't do anything: that script doesn't look at its arguments.
It would be nice to have the script's messages go to a log file. Will setting `syslog_stdout` to `Syslog_Defaultkey` do this for us in a sensible way?