open("/var/log/smstools/smsd_stats/GSM1.counter", O_RDONLY) = 5 fstat(5, {st_dev=makedev(202, 2), st_ino=9175591, st_mode=S_IFREG|0644, st_nlink=1, st_uid=105, st_gid=20, st_blksize=4096, st_blocks=8, st_size=11, st_atime=2013/06/19-17:04:05, st_mtime=2013/06/19-17:04:05, st_ctime=2013/06/19-17:04:05}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd5ff9b2000 read(5, "GSM1: 1046\n", 4096) = 11 close(5) = 0 munmap(0x7fd5ff9b2000, 4096) = 0 open("/var/log/smstools/smsd_stats/GSM1.counter", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 fstat(5, {st_dev=makedev(202, 2), st_ino=9175591, st_mode=S_IFREG|0644, st_nlink=1, st_uid=105, st_gid=20, st_blksize=4096, st_blocks=0, st_size=0, st_atime=2013/06/19-17:04:16, st_mtime=2013/06/19-17:04:16, st_ctime=2013/06/19-17:04:16}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd5ff9b2000 write(5, "GSM1: 1046\n", 11) = 11 close(5) = 0 munmap(0x7fd5ff9b2000, 4096) = 0 gettimeofday({1371654256, 423920}, {0, 0}) = 0 stat("/etc/localtime", {st_dev=makedev(202, 2), st_ino=1310727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2309, st_atime=2013/06/19-09:58:32, st_mtime=2013/06/17-09:58:13, st_ctime=2013/06/17-09:58:13}) = 0 write(3, "2013-06-19 17:04:16,5, GSM1: Modem handler 0 has started. PID: 4521.\n", 69) = 69 open("/dev/ttyS0", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 ENOSYS (Function not implemented) gettimeofday({1371654256, 424792}, {0, 140733334095020}) = 0 stat("/etc/localtime", {st_dev=makedev(202, 2), st_ino=1310727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2309, st_atime=2013/06/19-09:58:32, st_mtime=2013/06/17-09:58:13, st_ctime=2013/06/17-09:58:13}) = 0 write(3, "2013-06-19 17:04:16,3, GSM1: Couldn't open serial port /dev/ttyS0, error: Function not implemented, waiting 30 sec.\n", 116) = 116 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, 0x7fff08638580) = 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0 rt_sigaction(SIGCHLD, NULL, {SIG_DFL, [], 0}, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 nanosleep({1, 0}, {0, 160147869}) = ? ERESTART_RESTARTBLOCK (To be restarted) --- SIGINT (Interrupt) @ 0 (0) --- rt_sigaction(SIGTERM, {SIG_IGN, [TERM], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, {0x4041c0, [TERM], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, 8) = 0 rt_sigaction(SIGINT, {SIG_IGN, [INT], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, {0x4041c0, [INT], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, 8) = 0 rt_sigaction(SIGHUP, {SIG_IGN, [HUP], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, {0x4041c0, [HUP], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, 8) = 0 rt_sigaction(SIGUSR1, {SIG_IGN, [USR1], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, {0x4041c0, [USR1], SA_RESTORER|SA_RESTART, 0x7fd5ff23d4f0}, 8) = 0 rt_sigreturn(0xa) = -1 EINTR (Interrupted system call) --- SIGTERM (Terminated) @ 0 (0) --- open("/dev/ttyS0", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 ENOSYS (Function not implemented) gettimeofday({1371654258, 268057}, {0, 1371654256}) = 0 stat("/etc/localtime", {st_dev=makedev(202, 2), st_ino=1310727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2309, st_atime=2013/06/19-09:58:32, st_mtime=2013/06/17-09:58:13, st_ctime=2013/06/17-09:58:13}) = 0 write(3, "2013-06-19 17:04:18,3, GSM1: Cannot open serial port /dev/ttyS0, error: Function not implemented\n", 97) = 97 stat("/etc/localtime", {st_dev=makedev(202, 2), st_ino=1310727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2309, st_atime=2013/06/19-09:58:32, st_mtime=2013/06/17-09:58:13, st_ctime=2013/06/17-09:58:13}) = 0 gettimeofday({1371654258, 268772}, {0, 1371654256}) = 0 stat("/etc/localtime", {st_dev=makedev(202, 2), st_ino=1310727, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=2309, st_atime=2013/06/19-09:58:32, st_mtime=2013/06/17-09:58:13, st_ctime=2013/06/17-09:58:13}) = 0 write(3, "2013-06-19 17:04:18,2, GSM1: Modem handler 0 terminated. PID: 4521, was started 13-06-19 17:04:16.\n", 99) = 99 exit_group(127) = ?