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.
Click to show internal directories.
Click to hide internal directories.