Start rtsold
This commit is contained in:
parent
128e2aa0c4
commit
31961b8e3a
10
cmd/start.go
10
cmd/start.go
@ -1401,6 +1401,16 @@ func StartJail(args []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cj.Config.Rtsold > 0 || strings.EqualFold(cj.Config.Ip6_addr, "accept_rtadv") {
|
||||||
|
fmt.Printf(" > Start rtsold:\n")
|
||||||
|
cmd := fmt.Sprintf("/usr/sbin/setfib %s /usr/sbin/jexec %d service rtsold start", cj.Config.Exec_fib, cj.JID)
|
||||||
|
out, err := executeCommand(cmd)
|
||||||
|
if err != nil && len(out) > 0 {
|
||||||
|
fmt.Printf("Error: %v: %s\n", err, out)
|
||||||
|
} else {
|
||||||
|
fmt.Printf(" > Start rtsold: OK\n")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Execute Exec_poststart
|
// TODO: Execute Exec_poststart
|
||||||
if len(cj.Config.Exec_poststart) > 0 {
|
if len(cj.Config.Exec_poststart) > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user