Skip to content

Commit 6771c93

Browse files
committed
fix restart service command
1 parent 4ee0783 commit 6771c93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/zinit/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,5 +641,5 @@ func (c *Client) Log(n int) (out []byte, err error) {
641641

642642
// Restart restarts a service.
643643
func (c *Client) Restart(service string) error {
644-
return c.cmd(fmt.Sprintf("restart %s", service), nil)
644+
return exec.Command("zinit", "restart", service).Run()
645645
}

0 commit comments

Comments
 (0)