dan...@pocock.com.au said:
> I've added some notes to the wiki about how I boot into freevo (using a  gdm
> Init script), and also how I'm using a multi-seat configuration:
>
> http://doc.freevo.org/BootFreevo
>
> Any feedback on either of these topics or the scripts I've provided  would be
> welcome. 

As I've been looking into this recently, I appreciate the writeup. However, it 
doesn't speak about runing freevo as non-root. This is rather critical imho, 
as it's a big chunk of code, forking lots of other stuff. I hope you agree.

I was looking into using start-stop-daemon to exec the recordserver and
webserver as a dedicated user, but got stuck. It seems s-s-d assumes that a
daemon instance can be identified by its binary's name, but in freevo's case
that's "python", and the rest is just arguments with no meaning to s-s-d.

   
freevo    5300 14.3  0.6  24716 12652 pts/1    D    19:51   0:00 python 
/usr/lib/python2.5/site-packages/freevo/helpers/webserver.py
freevo    5305 14.3  0.6  25332 13008 pts/1    D    19:51   0:00 python 
/usr/lib/python2.5/site-packages/freevo/helpers/recordserver.py

s-s-d also supports handling daemons by checking their pids, but afaict we 
don't generate pid files. :-(

It also seems that freevo relies on stuff being set in the environment (HOME 
and/or USER, afaict), and that's somewhat untraditional for damons. I can 
certainly see the case for it when running interactively though.

Is there any way I've not discovered to control the webserver and recordserver 
from init.d scripts, like traditional daemons? Is there a writeup of what the 
freevo process expect to inherit from its parent (env, cwd, ...)?

-Anders


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to