chairemobilite / trRouting

Transit Routing server app using Connection Scan Algorithm and flexible parameters
GNU General Public License v3.0
25 stars 10 forks source link

Allow running without a terminal attached #23

Open greenscientist opened 3 years ago

greenscientist commented 3 years ago

Attempted to run trRouting as a pure deamon mode, without a terminal attached in a clean docker and it failed. Got this strace: [pid 192] set_tid_address(0x7f6037be6e50) = 192 [pid 192] set_robust_list(0x7f6037be6e60, 24) = 0 [pid 192] rt_sigaction(SIGRTMIN, {sa_handler=0x7f603a4296b0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f603a435730}, NULL, 8) = 0 [pid 192] rt_sigaction(SIGRT_1, {sa_handler=0x7f603a429740, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f603a435730}, NULL, 8) = 0 [pid 192] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 192] prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 [pid 192] brk(NULL) = 0x56084f27a000 [pid 192] brk(0x56084f29b000) = 0x56084f29b000 [pid 192] futex(0x7f603a1a207c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 [pid 192] futex(0x7f603a1a2088, FUTEX_WAKE_PRIVATE, 2147483647) = 0 [pid 192] openat(AT_FDCWD, "/sys/devices/system/cpu/online", O_RDONLY|O_CLOEXEC) = 3 [pid 192] read(3, "0-15\n", 8192) = 5 [pid 192] close(3) = 0 [pid 192] ioctl(1, TCGETS, 0x7ffc1e31f350) = -1 ENOTTY (Inappropriate ioctl for device) [pid 192] stat("/root/.terminfo", 0x56084f298490) = -1 ENOENT (No such file or directory) [pid 192] stat("/etc/terminfo", {st_mode=S_IFDIR|0755, st_size=12, ...}) = 0 [pid 192] stat("/lib/terminfo", {st_mode=S_IFDIR|0755, st_size=26, ...}) = 0 [pid 192] stat("/usr/share/terminfo", {st_mode=S_IFDIR|0755, st_size=0, ...}) = 0 [pid 192] access("/etc/terminfo/u/unknown", R_OK) = -1 ENOENT (No such file or directory) [pid 192] access("/lib/terminfo/u/unknown", R_OK) = -1 ENOENT (No such file or directory) [pid 192] access("/usr/share/terminfo/u/unknown", R_OK) = -1 ENOENT (No such file or directory) [pid 192] write(2, "Error opening terminal: unknown."..., 33) = 33

greenscientist commented 3 years ago

docker exec transition_transition-www_1 trRouting Error opening terminal: unknown.