1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 23:04:41 +00:00

Add respawn command

This commit is contained in:
Darren Shepherd
2015-02-14 09:34:31 -07:00
parent a3be33c19d
commit d564e5ae7d
2 changed files with 67 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import (
log "github.com/Sirupsen/logrus"
"github.com/docker/docker/pkg/reexec"
osInit "github.com/rancherio/os/init"
"github.com/rancherio/os/respawn"
"github.com/rancherio/os/sysinit"
"github.com/rancherio/os/user"
)
@@ -17,6 +18,7 @@ func main() {
reexec.Register("/sbin/init-sys", sysinit.SysInit)
reexec.Register("/usr/bin/system-docker", user.SystemDocker)
reexec.Register("system-docker", user.SystemDocker)
reexec.Register("respawn", respawn.Main)
if !reexec.Init() {
log.Fatalf("Failed to find an entry point for %s", os.Args[0])