# Integration with systemd

The simplemonitor package in Debian is integrated with systemd for easier
management. You can control the simplemonitor service using the following
commands:

- Start the service: `sudo systemctl start simplemonitor`

- Stop the service: `sudo systemctl stop simplemonitor`

- Restart the service: `sudo systemctl restart simplemonitor`

- Check the service status: `sudo systemctl status simplemonitor`

# Configuration files

All configuration files for SimpleMonitor are located in `/etc/simplemonitor`.

- Main configuration file: `/etc/simplemonitor/monitor.ini`
  Defines the primary settings, such as intervals, logging, and alerters.

- Monitor definitions: `/etc/simplemonitor/monitors.ini`
  Used to define the monitors that SimpleMonitor will use.

- Example configurations: `/usr/share/doc/simplemonitor/examples/monitor.ini`
  Includes additional examples for reference.

# Log files

By defaults, log files are stored in `/var/log/simplemonitor/simplemonitor.log`.
Change this location by modifying the `[logfile]` section in `/etc/simplemonitor/monitor.ini`

# Notes

SimpleMonitor is set up as a system service and can start automatically on boot.
To disable this behavior:
`sudo systemctl disable simplemonitor`

To enable it again:
`sudo systemctl enable simplemonitor`

Restart the service after any changes to the configuration files:
`sudo systemctl restart simplemonitor`

Full SimpleMonitor documentation is available in `/usr/share/doc/simplemonitor/html/index.html` .
