diff options
Diffstat (limited to 'internal/jailmgr')
| -rw-r--r-- | internal/jailmgr/jailmgr.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/jailmgr/jailmgr.go b/internal/jailmgr/jailmgr.go index 9ddf9b8..5da5663 100644 --- a/internal/jailmgr/jailmgr.go +++ b/internal/jailmgr/jailmgr.go @@ -68,6 +68,10 @@ func Start(ctx context.Context, out io.Writer, app string) error { return sh.Run(ctx, out, "", "service", "jail", "start", app) } +func Stop(ctx context.Context, out io.Writer, app string) error { + return sh.Run(ctx, out, "", "service", "jail", "stop", app) +} + // Restart restarts an already-running jail, or starts it if this is its // first deploy and it isn't up yet. func Restart(ctx context.Context, out io.Writer, app string) error { |
