SystemdHelpers.IsSystemdService Method

Definition

Check if the current process is hosted as a systemd Service.

public:
 static bool IsSystemdService();
public static bool IsSystemdService ();
static member IsSystemdService : unit -> bool
Public Shared Function IsSystemdService () As Boolean

Returns

true if the current process is hosted as a systemd Service; otherwise, false.

Applies to