execve("/usr/sbin/service", ["service", "smbd", "restart"], [/* 14 vars */]) = 0 brk(0) = 0x7fffc3da4000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb027f30000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=22054, ...}) = 0 mmap(NULL, 22054, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fb027f3b000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1840928, ...}) = 0 mmap(NULL, 3949248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fb027830000 mprotect(0x7fb0279eb000, 2093056, PROT_NONE) = 0 mmap(0x7fb027bea000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7fb027bea000 mmap(0x7fb027bf0000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fb027bf0000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb027f20000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb027f10000 arch_prctl(ARCH_SET_FS, 0x7fb027f10740) = 0 mprotect(0x7fb027bea000, 16384, PROT_READ) = 0 mprotect(0x7fb02821b000, 8192, PROT_READ) = 0 mprotect(0x7fb027e22000, 4096, PROT_READ) = 0 munmap(0x7fb027f3b000, 22054) = 0 getpid() = 1540 rt_sigaction(SIGCHLD, {0x7fb028012460, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, NULL, 8) = 0 geteuid() = 0 brk(0) = 0x7fffc3da4000 brk(0x7fffc3dc5000) = 0x7fffc3dc5000 getppid() = 1537 getcwd("/home/username/test", 4096) = 18 open("/usr/sbin/service", O_RDONLY) = 3 fcntl(3, F_DUPFD, 10) = 10 close(3) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, 0x7f91fbc16d40}, 8) = 0 rt_sigaction(SIGINT, {0x7fb028012460, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, NULL, 8) = 0 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, 0x7f91fbc16d40}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, NULL, 8) = 0 rt_sigaction(SIGTERM, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER|SA_INTERRUPT|SA_SIGINFO, 0x7f91fbc16d40}, 8) = 0 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, NULL, 8) = 0 read(10, "#!/bin/sh\n\n#####################"..., 8192) = 4873 pipe([3, 4]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb027f10a10) = 1541 close(4) = 0 read(3, "service\n", 128) = 8 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1541, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 8 read(3, "", 128) = 0 close(3) = 0 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1541 pipe([3, 4]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb027f10a10) = 1542 close(4) = 0 read(3, "service\n", 128) = 8 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1542, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 8 read(3, "", 128) = 0 close(3) = 0 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1542 chdir("/") = 0 faccessat(AT_FDCWD, "/etc/init/smbd.conf", R_OK) = 0 open("/dev/null", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fcntl(1, F_DUPFD, 10) = 11 close(1) = 0 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 dup2(3, 1) = 1 close(3) = 0 stat("/usr/local/sbin/which", 0x7fffcc03d8b0) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/which", 0x7fffcc03d8b0) = -1 ENOENT (No such file or directory) stat("/usr/sbin/which", 0x7fffcc03d8b0) = -1 ENOENT (No such file or directory) stat("/usr/bin/which", {st_mode=S_IFREG|0755, st_size=946, ...}) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb027f10a10) = 1543 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1543 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1543, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 1543 dup2(11, 1) = 1 close(11) = 0 stat("/usr/local/sbin/initctl", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/initctl", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/sbin/initctl", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/bin/initctl", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/sbin/initctl", {st_mode=S_IFREG|0755, st_size=193512, ...}) = 0 pipe([3, 4]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb027f10a10) = 1544 close(4) = 0 stat("/usr/local/sbin/grep", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/grep", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/sbin/grep", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/usr/bin/grep", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/sbin/grep", 0x7fffcc03d940) = -1 ENOENT (No such file or directory) stat("/bin/grep", {st_mode=S_IFREG|0755, st_size=191952, ...}) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fb027f10a10) = 1545 close(3) = 0 close(-1) = -1 EBADF (Bad file descriptor) wait4(-1, initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1544 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1544, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn() = 1544 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1545 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1545, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn() = 1545 geteuid() = 0 stat("/etc/init.d/smbd", {st_mode=S_IFREG|0755, st_size=1930, ...}) = 0 faccessat(AT_FDCWD, "/etc/init.d/smbd", X_OK) = 0 execve("/usr/local/sbin/env", ["env", "-i", "LANG=en_US.UTF-8", "PATH=/usr/local/sbin:/usr/local/"..., "TERM=xterm", "/etc/init.d/smbd", "restart"], [/* 16 vars */]) = -1 ENOENT (No such file or directory) execve("/usr/local/bin/env", ["env", "-i", "LANG=en_US.UTF-8", "PATH=/usr/local/sbin:/usr/local/"..., "TERM=xterm", "/etc/init.d/smbd", "restart"], [/* 16 vars */]) = -1 ENOENT (No such file or directory) execve("/usr/sbin/env", ["env", "-i", "LANG=en_US.UTF-8", "PATH=/usr/local/sbin:/usr/local/"..., "TERM=xterm", "/etc/init.d/smbd", "restart"], [/* 16 vars */]) = -1 ENOENT (No such file or directory) execve("/usr/bin/env", ["env", "-i", "LANG=en_US.UTF-8", "PATH=/usr/local/sbin:/usr/local/"..., "TERM=xterm", "/etc/init.d/smbd", "restart"], [/* 16 vars */]) = 0 brk(0) = 0xcec000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4418c30000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=22054, ...}) = 0 mmap(NULL, 22054, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4418c2a000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1840928, ...}) = 0 mmap(NULL, 3949248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4418430000 mprotect(0x7f44185eb000, 2093056, PROT_NONE) = 0 mmap(0x7f44187ea000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f44187ea000 mmap(0x7f44187f0000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f44187f0000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4418c20000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4418c10000 arch_prctl(ARCH_SET_FS, 0x7f4418c10740) = 0 mprotect(0x7f44187ea000, 16384, PROT_READ) = 0 mprotect(0x605000, 4096, PROT_READ) = 0 mprotect(0x7f4418a22000, 4096, PROT_READ) = 0 munmap(0x7f4418c2a000, 22054) = 0 brk(0) = 0xcec000 brk(0xd0d000) = 0xd0d000 open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=2919792, ...}) = 0 mmap(NULL, 2919792, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4418167000 close(3) = 0 execve("/etc/init.d/smbd", ["/etc/init.d/smbd", "restart"], [/* 3 vars */]) = 0 brk(0) = 0x7fffcde51000 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4ec0ac0000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=22054, ...}) = 0 mmap(NULL, 22054, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4ec0ac2000 close(3) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\320\37\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1840928, ...}) = 0 mmap(NULL, 3949248, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f4ec0430000 mprotect(0x7f4ec05eb000, 2093056, PROT_NONE) = 0 mmap(0x7f4ec07ea000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f4ec07ea000 mmap(0x7f4ec07f0000, 17088, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f4ec07f0000 close(3) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4ec0ab0000 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4ec0aa0000 arch_prctl(ARCH_SET_FS, 0x7f4ec0aa0740) = 0 mprotect(0x7f4ec07ea000, 16384, PROT_READ) = 0 mprotect(0x7f4ec0e1b000, 8192, PROT_READ) = 0 mprotect(0x7f4ec0a22000, 4096, PROT_READ) = 0 munmap(0x7f4ec0ac2000, 22054) = 0 getpid() = 1540 rt_sigaction(SIGCHLD, {0x7f4ec0c12460, ~[RTMIN RT_1], SA_RESTORER, 0x7f4ec0466d40}, NULL, 8) = 0 geteuid() = 0 brk(0) = 0x7fffcde51000 brk(0x7fffcde72000) = 0x7fffcde72000 getppid() = 1537 getcwd("/", 4096) = 2 open("/etc/init.d/smbd", O_RDONLY) = 3 fcntl(3, F_DUPFD, 10) = 10 close(3) = 0 fcntl(10, F_SETFD, FD_CLOEXEC) = 0 rt_sigaction(SIGINT, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, 8) = 0 rt_sigaction(SIGINT, {0x7f4ec0c12460, ~[RTMIN RT_1], SA_RESTORER, 0x7f4ec0466d40}, NULL, 8) = 0 rt_sigaction(SIGQUIT, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, 8) = 0 rt_sigaction(SIGQUIT, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f4ec0466d40}, NULL, 8) = 0 rt_sigaction(SIGTERM, NULL, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7fb027866d40}, 8) = 0 rt_sigaction(SIGTERM, {SIG_DFL, ~[RTMIN RT_1], SA_RESTORER, 0x7f4ec0466d40}, NULL, 8) = 0 read(10, "#!/bin/sh\n\n### BEGIN INIT INFO\n#"..., 8192) = 1930 geteuid() = 0 stat("/usr/sbin/smbd", {st_mode=S_IFREG|0755, st_size=71776, ...}) = 0 faccessat(AT_FDCWD, "/usr/sbin/smbd", X_OK) = 0 open("/lib/lsb/init-functions", O_RDONLY) = 3 fcntl(3, F_DUPFD, 10) = 11 close(3) = 0 fcntl(11, F_SETFD, FD_CLOEXEC) = 0 read(11, "# /lib/lsb/init-functions for De"..., 8192) = 8192 read(11, " -z \"${1:-}\" ]; then\n ret"..., 8192) = 3154 pipe([3, 4]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1546 close(4) = 0 read(3, "/lib/lsb/init-functions.d/20-lef"..., 128) = 90 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1546, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 90 read(3, "", 128) = 0 close(3) = 0 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1546 faccessat(AT_FDCWD, "/lib/lsb/init-functions.d/20-left-info-blocks", R_OK) = 0 open("/lib/lsb/init-functions.d/20-left-info-blocks", O_RDONLY) = 3 fcntl(3, F_DUPFD, 10) = 12 close(3) = 0 fcntl(12, F_SETFD, FD_CLOEXEC) = 0 read(12, "# Default info blocks put to the"..., 8192) = 1093 read(12, "", 8192) = 0 close(12) = 0 faccessat(AT_FDCWD, "/lib/lsb/init-functions.d/50-ubuntu-logging", R_OK) = 0 open("/lib/lsb/init-functions.d/50-ubuntu-logging", O_RDONLY) = 3 fcntl(3, F_DUPFD, 10) = 12 close(3) = 0 fcntl(12, F_SETFD, FD_CLOEXEC) = 0 read(12, "# Default init script logging fu"..., 8192) = 3447 read(12, "", 8192) = 0 close(12) = 0 stat("/etc/lsb-base-logging.sh", 0x7fffd5508e50) = -1 ENOENT (No such file or directory) read(11, "", 8192) = 0 close(11) = 0 geteuid() = 0 stat("/sbin/initctl", {st_mode=S_IFREG|0755, st_size=193512, ...}) = 0 faccessat(AT_FDCWD, "/sbin/initctl", X_OK) = 0 pipe([3, 4]) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1547 close(4) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1548 close(3) = 0 close(-1) = -1 EBADF (Bad file descriptor) wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1547 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1547, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn() = 1547 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1548 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1548, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn() = 1548 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1549 wait4(-1, * Stopping SMB/CIFS daemon smbd ...done. [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1549 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1549, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 1549 stat("/usr/local/sbin/sleep", 0x7fffd5509280) = -1 ENOENT (No such file or directory) stat("/usr/local/bin/sleep", 0x7fffd5509280) = -1 ENOENT (No such file or directory) stat("/usr/sbin/sleep", 0x7fffd5509280) = -1 ENOENT (No such file or directory) stat("/usr/bin/sleep", 0x7fffd5509280) = -1 ENOENT (No such file or directory) stat("/sbin/sleep", 0x7fffd5509280) = -1 ENOENT (No such file or directory) stat("/bin/sleep", {st_mode=S_IFREG|0755, st_size=31296, ...}) = 0 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1555 wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1555 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1555, si_status=0, si_utime=0, si_stime=0} --- rt_sigreturn() = 1555 clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f4ec0aa0a10) = 1556 wait4(-1, * Starting SMB/CIFS daemon smbd ...fail! [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 1556 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=1556, si_status=1, si_utime=0, si_stime=0} --- rt_sigreturn() = 1556 exit_group(0) = ? +++ exited with 0 +++