Skip to content

Instantly share code, notes, and snippets.

@Duncaen
Created February 8, 2019 08:08
Show Gist options
  • Save Duncaen/778d21453f9f60fa9f0e378d7a135126 to your computer and use it in GitHub Desktop.
Save Duncaen/778d21453f9f60fa9f0e378d7a135126 to your computer and use it in GitHub Desktop.
tmp$ strace -e file runsv /tmp/fizz/
execve("/usr/bin/runsv", ["runsv", "/tmp/fizz/"], 0x7ffc1f9f3f08 /* 37 vars */) = 0
chdir("/tmp/fizz/") = 0
stat("down", 0x7ffe57c29280) = -1 ENOENT (No such file or directory)
stat("log", 0x7ffe57c29280) = -1 ENOENT (No such file or directory)
mkdir("supervise", 0700) = -1 EEXIST (File exists)
readlink("supervise", "/tmp/supervise.fizz", 256) = 19
mkdir("/tmp/supervise.fizz", 0700) = 0
open("supervise/lock", O_WRONLY|O_CREAT|O_APPEND|O_NONBLOCK, 0600) = 5
mknod("supervise/control", S_IFIFO|0600) = 0
stat("supervise/control", {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
open("supervise/control", O_RDONLY|O_NONBLOCK) = 6
open("supervise/control", O_WRONLY|O_NONBLOCK) = 7
open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 8
rename("supervise/pid.new", "supervise/pid") = 0
open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 8
rename("supervise/stat.new", "supervise/stat") = 0
open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 8
rename("supervise/status.new", "supervise/status") = 0
mknod("supervise/ok", S_IFIFO|0600) = 0
open("supervise/ok", O_RDONLY|O_NONBLOCK) = 8
stat("control/u", 0x7ffe57c29070) = -1 ENOENT (No such file or directory)
open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/pid.new", "supervise/pid") = 0
open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/stat.new", "supervise/stat") = 0
open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/status.new", "supervise/status") = 0
open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/stat.new", "supervise/stat") = 0
open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/status.new", "supervise/status") = 0
stat("control/t", 0x7ffe57c29100) = -1 ENOENT (No such file or directory)
open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/stat.new", "supervise/stat") = 0
open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/status.new", "supervise/status") = 0
stat("control/d", 0x7ffe57c29110) = -1 ENOENT (No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3496, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
open("finish", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/pid.new", "supervise/pid") = 0
open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/stat.new", "supervise/stat") = 0
open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644) = 9
rename("supervise/status.new", "supervise/status") = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment