github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/service/common/common.go (about)

     1  package common
     2  
     3  // Conf is responsible for defining services. Its fields
     4  // represent elements of a service configuration.
     5  type Conf struct {
     6  	// Desc is the init service's description.
     7  	Desc string
     8  	// Env holds the environment variables that will be set when the command runs.
     9  	// Currently not used on Windows
    10  	Env map[string]string
    11  	// Limit holds the ulimit values that will be set when the command runs.
    12  	// Currently not used on Windows
    13  	Limit map[string]string
    14  	// Cmd is the command (with arguments) that will be run.
    15  	// The command will be restarted if it exits with a non-zero exit code.
    16  	Cmd string
    17  	// Out, if set, will redirect output to that path.
    18  	Out string
    19  	// InitDir is the folder in which the init script should be written
    20  	// defaults to "/etc/init" on Ubuntu
    21  	// Currently not used on Windows
    22  	InitDir string
    23  	// ExtraScript allows to insert script before command execution
    24  	ExtraScript string
    25  }