Using system.d services
API
Copy the file panoramax.service in /usr/lib/systemd/system/
.
Reload the daemon:
Start the service:
To get the status of the service:
To get the service logs:
Harvester
2 files:
- the harvest service
- the timer around it
Copy the files harvest-instance.service and harvest-instance.timer in /usr/lib/systemd/system/
.
Change the values you need to change:
- name of the instance, if you have several instance (and change also the name of the files)
- path to configuration file for the harvested instance
- frequency of the harvest
Reload the daemon:
Start the timer:
Stats
The stats are handled as materialzed views that needs to be refreshed.
Like the Harvester, there are 2 files:
- the stat refresh service
- the timer around it
Copy the files stats-refresh.service and stats-refresh.timer in /usr/lib/systemd/system/
.
Reload the daemon:
Start the timer: