spawn

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ShellToUse = "bash"

Variables

This section is empty.

Functions

func Run

func Run(job Job) (string, string, int, error)

func Start

func Start(jobName, configPath string) error

Start starts a job by creating a new process and writing the process ID to a file.

func Stop

func Stop(jobName string) error

Stop stops a job by sending a signal to the process with the process ID.

Types

type Job

type Job struct {
	Name     string
	Cmd      string
	Schedule string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL