Browse code

Rename all cases of "docker-init" to "dockerinit" for consistency

Tianon Gravi authored on 2013/10/18 14:39:57
Showing 5 changed files
... ...
@@ -1119,7 +1119,7 @@ func (container *Container) releaseNetwork() {
1119 1119
 	container.NetworkSettings = &NetworkSettings{}
1120 1120
 }
1121 1121
 
1122
-// FIXME: replace this with a control socket within docker-init
1122
+// FIXME: replace this with a control socket within dockerinit
1123 1123
 func (container *Container) waitLxc() error {
1124 1124
 	for {
1125 1125
 		output, err := exec.Command("lxc-info", "-n", container.ID).CombinedOutput()
1126 1126
deleted file mode 100644
... ...
@@ -1,16 +0,0 @@
1
-package main
2
-
3
-import (
4
-	"github.com/dotcloud/docker/sysinit"
5
-)
6
-
7
-var (
8
-	GITCOMMIT string
9
-	VERSION   string
10
-)
11
-
12
-func main() {
13
-	// Running in init mode
14
-	sysinit.SysInit()
15
-	return
16
-}
17 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
0
+package main
1
+
2
+import (
3
+	"github.com/dotcloud/docker/sysinit"
4
+)
5
+
6
+var (
7
+	GITCOMMIT string
8
+	VERSION   string
9
+)
10
+
11
+func main() {
12
+	// Running in init mode
13
+	sysinit.SysInit()
14
+	return
15
+}
... ...
@@ -94,7 +94,7 @@ lxc.mount.entry = devpts {{$ROOTFS}}/dev/pts devpts newinstance,ptmxmode=0666,no
94 94
 #lxc.mount.entry = varlock {{$ROOTFS}}/var/lock tmpfs size=1024k,nosuid,nodev,noexec 0 0
95 95
 lxc.mount.entry = shm {{$ROOTFS}}/dev/shm tmpfs size=65536k,nosuid,nodev,noexec 0 0
96 96
 
97
-# Inject docker-init
97
+# Inject dockerinit
98 98
 lxc.mount.entry = {{.SysInitPath}} {{$ROOTFS}}/.dockerinit none bind,ro 0 0
99 99
 
100 100
 # In order to get a working DNS environment, mount bind (ro) the host's /etc/resolv.conf into the container
... ...
@@ -97,7 +97,7 @@ func executeProgram(name string, args []string) {
97 97
 // up the environment before running the actual process
98 98
 func SysInit() {
99 99
 	if len(os.Args) <= 1 {
100
-		fmt.Println("You should not invoke docker-init manually")
100
+		fmt.Println("You should not invoke dockerinit manually")
101 101
 		os.Exit(1)
102 102
 	}
103 103
 	var u = flag.String("u", "", "username or uid")