From 29af9c14e442f5cf3760f439d8c0fffaf84e2268 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Fri, 8 Aug 2014 16:21:53 -0700 Subject: [PATCH] Remove unsued sysinit package Signed-off-by: Michael Crosby --- sysinit/README.md | 4 ---- sysinit/sysinit.go | 22 ---------------------- 2 files changed, 26 deletions(-) delete mode 100644 sysinit/README.md delete mode 100644 sysinit/sysinit.go diff --git a/sysinit/README.md b/sysinit/README.md deleted file mode 100644 index c28d0298b8..0000000000 --- a/sysinit/README.md +++ /dev/null @@ -1,4 +0,0 @@ -Sys Init code - -This code is run INSIDE the container and is responsible for setting -up the environment before running the actual process diff --git a/sysinit/sysinit.go b/sysinit/sysinit.go deleted file mode 100644 index ed8d11827f..0000000000 --- a/sysinit/sysinit.go +++ /dev/null @@ -1,22 +0,0 @@ -package sysinit - -import ( - "fmt" - "os" - "runtime" -) - -// Sys Init code -// This code is run INSIDE the container and is responsible for setting -// up the environment before running the actual process -func SysInit() { - // The very first thing that we should do is lock the thread so that other - // system level options will work and not have issues, i.e. setns - runtime.LockOSThread() - - if len(os.Args) <= 1 { - fmt.Println("You should not invoke dockerinit manually") - os.Exit(1) - } - -}