jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] jk_chrootlaunch processes staying around?


From: Olivier Sessink
Subject: Re: [Jailkit-users] jk_chrootlaunch processes staying around?
Date: Tue, 30 Oct 2007 17:25:53 +0100
User-agent: Icedove 1.5.0.14pre (X11/20071018)

Gregory Piñero wrote:
> On 10/30/07, Olivier Sessink <address@hidden> wrote:
>>> 1. Why are these root process sticking around?
>> it's the /bin/sh process sticking around, not the jk_chrootlaunch. So I
>> don't know how you start these 4 processes, but I guess it's some
>> script, and this script is the reason you see 4 /bin/sh processes.
> 
> Yeah, it's a Python script that launches these processes.  If it helps
> here's the relevant code used to launch each process:
> 
> def launch_worker():
>     """Launch a single worker. Use jailkit"""
>     #change for python version if needed e.g., 2.4
>     command="""jk_chrootlaunch -u jailtest -g jailtest -j
> /srv/jail_for_python/ --exec /usr/bin/python2.5 exec_worker.py"""
>     proc = 
> subprocess.Popen(command,shell=True,stdin=subprocess.PIPE,stdout=subprocess.PIPE)

what does shell=True do?

regards,
        Olivier




reply via email to

[Prev in Thread] Current Thread [Next in Thread]