summaryrefslogtreecommitdiff
path: root/internal/jailmgr
diff options
context:
space:
mode:
Diffstat (limited to 'internal/jailmgr')
-rw-r--r--internal/jailmgr/jailmgr.go4
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 {