Skip to content

Instantly share code, notes, and snippets.

@standaloneSA
Created November 18, 2015 01:26
Show Gist options
  • Save standaloneSA/3480d234e1f3a79272be to your computer and use it in GitHub Desktop.
Save standaloneSA/3480d234e1f3a79272be to your computer and use it in GitHub Desktop.
open("/var/run/SERVICE.pid", O_RDONLY) = -1 ENOENT (No such file or directory)
getpid() = 5778
open("/var/run/SERVICEd.pid", O_WRONLY|O_CREAT|O_TRUNC|O_NOFOLLOW, 0666) = 3
fcntl(3, F_GETFL) = 0x28001 (flags O_WRONLY|O_LARGEFILE|O_NOFOLLOW)
fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f08cc83a000
lseek(3, 0, SEEK_CUR) = 0
write(3, "5778\n", 5) = 5
close(3) = 0
munmap(0x7f08cc83a000, 4096) = 0
chdir("/") = 0
getgid() = 0
getuid() = 0
setgid(65534) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
read(3, "65536\n", 31) = 6
close(3) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_LOCAL, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/group", O_RDONLY|O_CLOEXEC) = 3
lseek(3, 0, SEEK_CUR) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=812, ...}) = 0
mmap(NULL, 812, PROT_READ, MAP_SHARED, 3, 0) = 0x7f08cc83a000
lseek(3, 812, SEEK_SET) = 812
fstat(3, {st_mode=S_IFREG|0644, st_size=812, ...}) = 0
munmap(0x7f08cc83a000, 812) = 0
close(3) = 0
setgroups(2, [65534, 118]) = 0
setuid(111) = 0
execve("/usr/bin/SERVICEd", ["/usr/bin/SERVICEd", "--config", "/etc/SERVICEd.conf"], [/* 17 vars */]) = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment