wip: feat(task): added missing information and rearrange

This commit is contained in:
2024-01-11 11:56:18 +11:00
parent 6a68209629
commit cdc66a2c22
3 changed files with 13 additions and 6 deletions

View File

@@ -25,7 +25,6 @@ type Task interface {
Environ() []string
Setsid() bool
UserGroup() UserGroup
Background() bool //NOTE: implies using wmpidproxy
WorkingDir() string
Status() TaskStatus
}
@@ -37,6 +36,8 @@ type CronTask interface {
type ServiceTask interface {
Task
Background() bool //NOTE: implies using wmpidproxy
StartSecs() uint
AutoStart() bool
AutoRestart() bool
}