pm2

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PM2RestartStep

type PM2RestartStep struct {
	ProcessName string
}

PM2RestartStep restarts a process managed by PM2.

func (*PM2RestartStep) Name

func (s *PM2RestartStep) Name() string

func (*PM2RestartStep) Run

type PM2SaveStep

type PM2SaveStep struct{}

PM2SaveStep saves the current PM2 process list for reboot persistence.

func (*PM2SaveStep) Name

func (s *PM2SaveStep) Name() string

func (*PM2SaveStep) Run

func (s *PM2SaveStep) Run(
	context deploycontext.DeploymentContext,
) error

type PM2StartOrRestartStep

type PM2StartOrRestartStep struct {
	ProcessName   string
	StartCommand  string
	Arguments     []string
	DirectoryPath string
}

PM2StartOrRestartStep restarts an existing PM2 process or starts it if it does not exist yet.

func (*PM2StartOrRestartStep) Name

func (s *PM2StartOrRestartStep) Name() string

func (*PM2StartOrRestartStep) Run

type PM2StatusStep

type PM2StatusStep struct {
	ProcessName string
}

PM2StatusStep checks whether a PM2 process exists and is visible to PM2.

func (*PM2StatusStep) Name

func (s *PM2StatusStep) Name() string

func (*PM2StatusStep) Run

Jump to

Keyboard shortcuts

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