systemd

package
v0.12.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package systemd provides the systemd artifacts and variables for the gpud server.

Index

Constants

View Source
const (
	DefaultEnvFile  = "/etc/default/gpud"
	DefaultUnitFile = "/etc/systemd/system/gpud.service"

	DeprecatedDefaultBinPathSbin = "/usr/sbin/gpud"
	DefaultBinPath               = "/usr/local/bin/gpud"
)

Variables

This section is empty.

Functions

func CreateDefaultEnvFile

func CreateDefaultEnvFile(endpoint string, dataDir string, dbInMemory bool, sessionProtocol ...string) error

CreateDefaultEnvFile creates the default environment file for gpud systemd service. Assume systemdctl is already installed, and runs on the linux system.

Note: Session credentials (token, machine ID) are NOT passed via environment file. login.Login() always writes credentials to the persistent state file (via dataDir). When --db-in-memory is enabled, gpud run reads credentials from the persistent file and passes them to the server to seed into the in-memory database.

func DefaultBinExists

func DefaultBinExists() bool

func GPUdServiceUnitFileContents added in v0.5.0

func GPUdServiceUnitFileContents() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL