mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-10-24 18:45:57 +00:00
Add logging to /var/log for onboot containers
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -83,9 +83,9 @@ func main() {
|
||||
command := os.Args[0]
|
||||
switch {
|
||||
case strings.Contains(command, "onboot"):
|
||||
os.Exit(runcInit(onbootPath))
|
||||
os.Exit(runcInit(onbootPath, "onboot"))
|
||||
case strings.Contains(command, "onshutdown"):
|
||||
os.Exit(runcInit(shutdownPath))
|
||||
os.Exit(runcInit(shutdownPath, "shutdown"))
|
||||
case strings.Contains(command, "containerd"):
|
||||
systemInitCmd(ctx, []string{})
|
||||
os.Exit(0)
|
||||
|
||||
Reference in New Issue
Block a user