Not throwing an error?
Bill Rees
brees at stacklighting.com
Mon Oct 5 04:03:02 UTC 2015
I'm running the daemon with the following
def thesetup(st_out, mf, xf, pidfile):
dmon = daemon.DaemonContext(
working_directory='/',
umask=0o002,
pidfile = lockfile.FileLock(pidfile),
)
dmon.signal_map = {
signal.SIGHUP: hup,
signal.SIGQUIT: quit,
signal.SIGINT: interrupt,
}
dmon.stdout = st_out
dmon.files_preserve = [mf, xf]
return dmon
and a pidfile already exists in /var/run/immortal.pid.
Once running the process is stuck here, but no error is thrown so the
daemon can't detect the problem. Is there a way to see the error?
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
stat("/var/run/aster-standin-92fe2700.135462690457600465152996",
{st_mode=S_IFREG|0664, st_size=0, ...}) = 0
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
link("/var/run/aster-standin-92fe2700.135462690457600465152996",
"/var/run/immortal.pid.lock") = -1 EEXIST (File exists)
--
*Bill Rees* *| *
Stack Labs | 10054 Pasadena Ave, Cupertino, CA 95014
brees @stacklighting.com <brees at stacklighting.com>
This electronic mail transmission may contain private, confidential and
privileged information that is for the sole use of the intended recipient.
If you are not the intended recipient, you are hereby notified that any
review, dissemination, distribution, archiving, or copying of this
communication
is strictly prohibited. If you received this communication in error,
please reply to this message immediately and delete the original message
and the associated reply.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-daemon-devel/attachments/20151004/9e8bbbc9/attachment.html>
More information about the python-daemon-devel
mailing list