[NTG-context] calling ConTeXt as a background process

Henning Hraban Ramm hraban at fiee.net
Fri Oct 8 15:47:50 CEST 2010


Am 2010-10-08 um 13:46 schrieb Florian Wobbe:
> Right, so you are not even getting to the point where luatex is  
> called. This is still texlua executing instructions from mtxrun.

>> strace -p 14256
>> attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted
>> (as the same user as well as as root)
>
> Something to do with SElinux?

As far as I can tell, SElinux isn't active. (libselinux is installed,  
but no other selinux package)

> Here, uname -m should be called. But I guess you still have all  
> unames replaced by their return value I guess?

Yes, I didn't reinstate the original mtxrun script.

>> brk(0x1c3e1000)                         = 0x1c3e1000
>> uname({sys="Linux", node="aine.fiee.net", ...}) = 0
>> --- SIGTERM (Terminated) @ 0 (0) ---
>> +++ killed by SIGTERM +++
>
> Here it should continue with reading texmfcnf.lua.
>
> The last
>
>  uname({sys="Linux", node="aine.fiee.net", ...
>
> you get is from the os.uname call I would guess.

Probably.

> Try putting the lines
>
> for k, v in next, os.uname() do
>   print(k, v)
> end
>
> in a file and run it with texlua from the script to be sure.

That works:

texlua call_uname.lua

version #1 SMP Tue Jul 6 14:34:09 MSD 2010
release 2.6.18-028stab070.2
machine x86_64
nodename        aine.fiee.net
sysname Linux

> Then you might also try to invoke luatex directly:
>
> luatex --interaction=batchmode --fmt="<path to>/formats/cont-en" -- 
> lua="<path to>/formats/cont-en.lui" --backend=pdf hello

Now I get the defunct uname again:

16002 15978 TS   21 15:41 ?        00:00:01  \_ /var/www/xxx/bin/ 
python /var/www/.../manage.py run_gunicorn -c /var/www/.../gunicorn- 
settings.py
16210 16002 TS   14 15:42 ?        00:00:08      \_ luatex -- 
interaction=batchmode --fmt=/var/opt/context/tex/texmf-cache/.../ 
formats/cont-en --lua=/var/opt/context/tex/texmf-cache/...
16212 16210 TS   17 15:42 ?        00:00:00          \_ [uname]  
<defunct>

(Meanwhile I switched from fcgi to gunicorn app server, but that  
didn't change anything WRT ConTeXt.)

I get no log output.


BTW: Thank you very much for your patience! I owe you! (And you, Taco,  
of course, and the others!)

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)



More information about the ntg-context mailing list