Documentation
¶
Index ¶
- func GetServiceFile(profileName, commandName string) string
- func GetServiceFileDropInDir(profileName, commandName string) string
- func GetSystemDir() string
- func GetTimerFile(profileName, commandName string) string
- func GetTimerFileDropInDir(profileName, commandName string) string
- type Config
- type Unit
- type UnitType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetServiceFile ¶ added in v0.9.0
GetServiceFile returns the service file name for the profile
func GetServiceFileDropInDir ¶ added in v0.25.0
GetServiceFileDropInDir returns the service file drop-in dir name for the profile
func GetSystemDir ¶ added in v0.9.0
func GetSystemDir() string
GetSystemDir returns the path where the local systemd units are stored
func GetTimerFile ¶ added in v0.9.0
GetTimerFile returns the timer file name for the profile
func GetTimerFileDropInDir ¶ added in v0.27.0
GetTimerFileDropInDir returns the timer file drop-in dir name for the profile
Types ¶
type Config ¶ added in v0.16.0
type Config struct { CommandLine string Environment []string WorkingDirectory string Title string SubTitle string JobDescription string TimerDescription string Schedules []string UnitType UnitType Priority string // standard or background UnitFile string TimerFile string DropInFiles []string AfterNetworkOnline bool Nice int CPUSchedulingPolicy string IOSchedulingClass int IOSchedulingPriority int User string }
Config for generating systemd unit and timer files
type Unit ¶ added in v0.30.0
type Unit struct {
// contains filtered or unexported fields
}
func (Unit) DropInFileExists ¶ added in v0.31.0
func (Unit) GetUserDir ¶ added in v0.30.0
GetUserDir returns the default directory where systemd stores user units
func (Unit) IsTimerDropIn ¶ added in v0.30.0
Click to show internal directories.
Click to hide internal directories.