16 Aug 2010 22:32
runsv failing when starting up logger - missing pipe - failure of logpipe init?
Charlie Brady <charlieb-supervision <at> budge.apana.org.au>
2010-08-16 20:32:09 GMT
2010-08-16 20:32:09 GMT
I'm running runit 1.7.2, and have a sytem showing this anomolous behaviour
(one service is failing to start).
Here is the bad service:
[root <at> mbgvm1 ~]# sv status /service/tug-metrics/
down: /service/tug-metrics/: 1316s, normally up; down: log: 0s, normally
up, want up
[root <at> mbgvm1 ~]#
strace of the runsv process shows that the child is dying immediately
because fd 5 is not valid:
2005 fork() = 8121
2005 gettimeofday({1281988874, 32865}, NULL) = 0
2005 open("supervise/pid.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK, 0644)
= 5
2005 write(5, "8121\n", 5) = 5
2005 close(5) = 0
2005 rename("supervise/pid.new", "log/supervise/pid") = 0
2005 open("supervise/stat.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK,
0644) = 5
2005 write(5, "run\n", 4) = 4
2005 close(5) = 0
2005 rename("supervise/stat.new", "log/supervise/stat") = 0
2005 open("supervise/status.new", O_WRONLY|O_CREAT|O_TRUNC|O_NONBLOCK,
0644) = 5
2005 write(5, " <at> \0\0\0Li\231\24\1\365|\334\271\37\0\0\0u\0\1", 20) = 20
2005 close(5) = 0
(Continue reading)
RSS Feed