Skip to content

Using system.d services

API

Copy the file panoramax.service in /usr/lib/systemd/system/.

Reload the daemon:

 systemctl daemon-reload

Start the service:

service panoramax start

To get the status of the service:

service panoramax status

To get the service logs:

journalctl -u panoramax

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:

systemctl daemon-reload

Start the timer:

systemctl start harvest-instance.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:

systemctl daemon-reload

Start the timer:

systemctl start stats-refresh.timer