Skip to content

Installing the commit log service

This service updates the log table of the database on every push to a repository. This table provides the data for the calendar heatmap displayed on each user's page.

This service is the Myxo service commits. Its code ships with the sourcelab package. Place it in a process of the layout, /etc/sourcelab/layout.toml, alone or with other services.

Configure your system

  • Install the service.

    From an RPM:

    dnf install sourcelab-logcom
    

    From the sources, copy the systemd unit:

    cp files/sourcelab_logcom.service /etc/systemd/system/sourcelab_logcom.service
    

    The unit runs myxo serve /etc/sourcelab/layout.toml commits, the layout's process commits, as the git user, with SOURCELAB_CONFIG=/etc/sourcelab/sourcelab.cfg. Adjust these if your installation differs.

  • Activate the service and ensure it's started upon boot:

    systemctl enable --now sourcelab_logcom
    

Note

We ship a systemd unit for sourcelab_logcom, but we welcome patches for other init systems.