Skip to content

Commit 97d3bff

Browse files
authored
Merge pull request #13 from mantidproject/readme_debugging
Change docs to new way of controlling the daemon
2 parents 44fcd02 + cf094e8 commit 97d3bff

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

README.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,18 @@ The logfile of what was setup for running, as well as other messages, is
2020
or `livereduce.log` in the current working directory (if run from the
2121
command line).
2222

23-
If run from inside `systemd`, use the standard commands for starting and stopping it.
23+
If run from inside `systemctl`, use the standard commands for starting and stopping it.
2424
```shell
25-
sudo service livereduce start
26-
sudo service livereduce stop
27-
sudo service livereduce restart
25+
sudo systemctl start livereduce
26+
sudo systemctl stop livereduce
27+
sudo systemctl restart livereduce
2828
```
2929
The status of the service can be found via
3030
```shell
31-
sudo service livereduce status -l -n 25
31+
sudo systemctl status livereduce status
3232
```
33-
to see the last 25 lines (`-n 25`) mantid wrote to `stdout` with the full
34-
information for each line (`-l`). People with extra permissions can run
35-
``sudo journalctl -u livereduce -f`` and see all of the logs without them
36-
flushing on restart of the service.
33+
the logs are stored in `/var/log/SNS_applications/livereduce.log` and are readable by anyone.
34+
People with extra permissions can run ``sudo journalctl -u livereduce -f`` and see all of the logs without them flushing on restart of the service.
3735

3836
If the instrument is not defined in the configuration file (default is `/etc/livereduce.conf`) the software will ask mantid for the default instrument using `mantid.kerel.ConfigService.getInstrument()` ([docs](https://docs.mantidproject.org/nightly/api/python/mantid/kernel/ConfigServiceImpl.html#mantid.kernel.ConfigServiceImpl.getInstrument)).
3937
The default instrument is controlled in the [mantid properties files](https://docs.mantidproject.org/nightly/concepts/PropertiesFile.html) and is typically defined in `/etc/mantid.local.properties`.

0 commit comments

Comments
 (0)