Andreas Hartmann wrote:
> Hi Lenya devs,
> 
> I don't know if this behaviour is intended:
> When I start my Lenya 1.2.x, the process ID seems to be written to a
> file. Ctrl+C doesn't shutdown Jetty, but the next ./lenya.sh kills the
> process with the stored ID.
> 
> Is there any special reason for this behaviour? IMO storing PIDs is
> dangerous - on the next day, the ID could be assigned to another process
> which will be killed when you startup Lenya ... Or is this not possible?

only if you own it. if you run lenya as a special user (which you really
really should), then there's no danger at all. if you run lenya as root,
you get what you deserve :)

storing PIDs is standard behaviour for daemons that are singletons.
check the /var/run directory of most unix systems for an overview of how
many programs do it...

-- 
Jörn Nettingsmeier

"One of my most productive days was throwing away 1000 lines of code."
  - Ken Thompson.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to