Skip to content

Using system.d services

API

Copy the file panoramax.service in /etc/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

There are 2 files:

  • the harvest service
  • the timer around it

Copy the files harvest-instances.service and harvest-instances.timer in /etc/systemd/system/.

Reload the daemon:

systemctl daemon-reload

Start the timer:

systemctl start harvest-instances.timer
systemctl enable harvest-instances.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 /etc/systemd/system/.

Reload the daemon:

systemctl daemon-reload

Start the timer:

systemctl start stats-refresh.timer