Table of Contents

SystemdUnitText Method

The unit file printed by --systemd-unit, as a string.

Remarks

Identity comes from AOptions, lower cased and dash separated where systemd wants a word; everything falls back to the executable base name. On Linux the ExecStart path is the running executable; elsewhere an /opt placeholder stands in, to be edited to the deployed path.

Syntax

Unit: Sparkle.Host.Install.Systemd

function SystemdUnitText(const AOptions: THostServiceOptions): string;

Parameters

<-> Parameter Type Description
const AOptions THostServiceOptions