Files
privatae-bastion/client-go/sysservice_other.go
T
Privatae 48899b41a9
ci / personal-data (push) Successful in 4s
ci / test (push) Successful in 4m58s
ci / fuzz (push) Successful in 3m33s
bastion 0.63.1
2026-11-03 22:56:18 +00:00

25 lines
955 B
Go

//go:build !darwin && !windows
package main
import "errors"
// On Linux the system service is the systemd unit deploy/install.sh writes,
// and nothing here changes it. These answer the `service` command and the
// startup check (adoptSystemServiceState) for that platform.
var errLinuxServiceIsTheUnit = errors.New("on Linux the system service is the systemd unit the installer writes " +
"(curl -fsSL https://privatae.ai/bastion/install.sh | sudo sh); manage it with systemctl")
func systemServiceInstalled() (bool, error) { return false, nil }
func installSystemService() error { return errLinuxServiceIsTheUnit }
func uninstallSystemService() error { return errLinuxServiceIsTheUnit }
func printSystemServiceStatus() error { return errLinuxServiceIsTheUnit }
// systemServiceRunning: no service manager of ours here; the console answers
// for a running bastion (pair.go pairDaemonRunning).
func systemServiceRunning() bool { return false }