Upstart job hangs at "start/killed"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
upstart (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: upstart
I have the following upstart job:
$ cat /etc/init/
start on runlevel 2
chdir /mnt/datanr/freenet
exec sudo -u freenet ./run.sh start
nice 5
expect daemon
Upstart starts it during boot, but is unable to stop it.
$ sudo status freenet
freenet start/killed, process 2444
Process with pid 2444 does not exist, I guess there are too many forks.
I'll try using "su" instead of "sudo", but cannot change/start nor stop the process really.
$ status freenet
freenet start/killed, process 2444
$ sudo stop freenet
^C
$ status freenet
freenet stop/killed, process 2444
$ sudo stop freenet
stop: Job has already been stopped: freenet
All the time, there's no process 2444.
I'm attaching straces of the hanging start and stop actions, and a core dump.
ProblemType: Bug
Architecture: i386
Date: Mon Sep 28 20:26:28 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: upstart 0.6.3-5
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: upstart
Uname: Linux 2.6.31-11-generic i686
core dump, as requested by sadmac2 on IRC.
I hope this will work.
$ sudo gcore 1
warning: process 1 is a cloned process
[Thread debugging using libthread_db enabled]
0x00571422 in __kernel_vsyscall ()
Saved corefile core.1