WIP: added fallback env

This commit is contained in:
2025-05-26 21:05:12 +10:00
parent 1827cf2e3e
commit 438e48c6fe
5 changed files with 68 additions and 20 deletions

View File

@@ -42,12 +42,13 @@ type Config struct {
}
type Task struct {
Command []string `mapstructure:"command"`
Environ []string `mapstructure:"environ"`
Setsid bool `mapstructure:"setsid"`
User string `mapstructure:"user"`
Group string `mapstructure:"group"`
WorkingDir string `mapstructure:"working_dir"`
Command []string `mapstructure:"command"`
Environ []string `mapstructure:"environ"`
FallbackEnv []string `mapstructure:"fallback_env"`
Setsid bool `mapstructure:"setsid"`
User string `mapstructure:"user"`
Group string `mapstructure:"group"`
WorkingDir string `mapstructure:"working_dir"`
}
type ServiceTask struct {