Files
Gokapi/internal/helper/systemd/Systemd.go
2024-04-20 15:41:18 +02:00

25 lines
464 B
Go

//go:build !linux
package systemd
import (
"fmt"
"os"
)
// InstallService installs Gokapi as a systemd service
func InstallService() {
invalidOS()
}
// UninstallService uninstalls Gokapi as a systemd service
func UninstallService() {
invalidOS()
}
// invalidOS displays an error message and exits the program, as systemd is not supported on Windows
func invalidOS() {
fmt.Println("This feature is only supported on systems using systemd.")
os.Exit(2)
}