Need help writing upstart confs
Tim G.
alleighty at gmx.de
Tue Sep 14 14:57:11 BST 2010
Hello,
having hard problems writing a simple upstart .conf
Can you help me, why a simple rule like this isn't working? It just hangs.
This is really driving me crazy, not debug possibility, no output, nothing.
# reelbox-ctrld -
#
description ""
start on startup
console output
expect fork
script
/usr/sbin/reelbox-ctrld $DAEMON_ARGS -f
end script
if i say "start reelbox-control" it just hangs and hangs and hangs and
hangs... until i cancel it with ctrl+c
output is: nothing
even if i say "start -vvv" the is no output.
after that, the next "start ..." says "Job is already running:
reelbox-control" (but it is not)
so i have to stop it. but "stop reelbox-control" also hangs.
stace says this:
open("/usr/share/locale-langpack/de/LC_MESSAGES/upstart.mo", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=22237, ...}) = 0
mmap2(NULL, 22237, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb762e000
close(3) = 0
getuid32() = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
connect(3, {sa_family=AF_FILE, path=@"/com/ubuntu/upstart"}, 22) = 0
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
geteuid32() = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [PIPE], SA_RESTART}, {SIG_DFL, [], 0}, 8) = 0
poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])
write(3, "\0", 1) = 1
write(3, "AUTH EXTERNAL 30\r\n", 18) = 18
poll([{fd=3, events=POLLIN}], 1, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "OK b3095f927f8275fb0633eaa04c8f7"..., 2048) = 37
poll([{fd=3, events=POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
write(3, "BEGIN\r\n", 7) = 7
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3, [{"l\1\2\1\24\0\0\0\1\0\0\0_\0\0\0\1\1o\0\23\0\0\0/com/ubu"...,
112}, {"\17\0\0\0reelbox-control\0", 20}], 2) = 132
gettimeofday({1284472521, 770867}, NULL) = 0
poll([{fd=3, events=POLLIN}], 1, 25000) = 1 ([{fd=3, revents=POLLIN}])
read(3, "l\2\1\1/\0\0\0\1\0\0\0\17\0\0\0\5\1u\0\1\0\0\0\10\1g\0\1o\0\0"...,
2048) = 79
read(3, 0x226fb370, 2048) = -1 EAGAIN (Resource temporarily
unavailable)
writev(3, [{"l\1\2\1\10\0\0\0\2\0\0\0y\0\0\0\1\1o\0*\0\0\0/com/ubu"..., 144},
{"\0\0\0\0\1\0\0\0", 8}], 2) = 152
poll([{fd=3, events=POLLIN}], 1, -1
More information about the upstart-devel
mailing list