View unanswered posts | View active topics It is currently Sun May 19, 2013 12:36 am



Reply to topic  [ 6 posts ] 
 Run Indigo Beta server as a daemon? 
Author Message

Joined: Jan 03, 2007
Posts: 39
Post Run Indigo Beta server as a daemon?
The current beta must be run under an admin user account (non-admin clients can connect to the server on the same machine). We are experimenting with running the Indigo Server as a true daemon before any users are logged on.


How do I run Indigo Server as a true daemon (without applescript)?

My problem is running on a Mac mini, when I switch accounts the server stops responding. Maybe there is some other solution.

Neil


Wed Jan 03, 2007 6:07 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11682
Location: Texas
Post Re: Run Indigo Beta server as a daemon?
Hi Neil,

Are you logging out when you switch users or just doing fast user switching? If you do the latter, then IndigoServer should remain running and still work. That is probably the best solution -- have an account you always have running that runs IndigoServer (and other servers, like Phlink).

The problem with daemon mode is that is cripples the server somewhat. Some functionality, like AppleScript, are impossible to run from a true daemon. This is an OS limitation, unfortunately.

Regards,
Matt


Wed Jan 03, 2007 6:17 pm
Profile WWW

Joined: Jan 03, 2007
Posts: 39
Post 
I am using fast user switching and the server quits responding.

If the server is python and cherrypy, why not run the server behind apache (http://docs.cherrypy.org/recommended-se ... n-websites) instead of stand-alone?

Neil


Wed Jan 03, 2007 6:23 pm
Profile
Site Admin
User avatar

Joined: Jan 27, 2003
Posts: 11682
Location: Texas
Post 
I just switched to a guest user account and was able to connect to the IndigoServer running on my admin account. I choose the Indigo 2->Connect To Remote Server... menu item. I used the IP address 127.0.0.1, it connected and let me control devices. Any idea what may be different on your setup? I'm running OS X 10.4.8.

The web server is written on top of CherryPy in Python, but the IndigoServer is not. For full functionality (AppleScript), IndigoServer needs the OS X Window Server process running when it launches.

I'm sure you can run the Indigo web server behind Apache. But that won't fix the dependency IndigoServer has on needing the OS X GUI running for full functionality.

To launch IndigoServer in daemon mode pass the flag -daemon to it. This will disable all AppleScript functionality though and isn't currently officially supported. I do know of at least one user that is using it in this mode though...

Regards,
Matt


Wed Jan 03, 2007 6:35 pm
Profile WWW

Joined: Jan 03, 2007
Posts: 39
Post 
I just switched to a guest user account and was able to connect to the IndigoServer running on my admin account. I choose the Indigo 2->Connect To Remote Server... menu item. I used the IP address 127.0.0.1, it connected and let me control devices. Any idea what may be different on your setup? I'm running OS X 10.4.8.


After I switch users, Indigo seem to respond to switch events. However, after I let it set overnight Indigo does not activiate timed events. Also, I might have something else wrong as I can not SSH into it right now.

I am also running 10.4.8.

I'll post more after I see what is happening.


Thu Jan 04, 2007 5:38 pm
Profile

Joined: Jan 03, 2007
Posts: 39
Post 
Everything seems to working fine now. It seems I created the groups but not the time events. :D


Sun Jan 14, 2007 10:20 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.   Template designed by STSoftware.