From 679343594d86d57c85d1a6bb5333c83ca8bacd78 Mon Sep 17 00:00:00 2001 From: Karl MacMillan Date: Fri, 28 Sep 2007 16:46:12 -0400 Subject: Install the web gui Install the turbogears web gui including an init script. This patch includes a few related changes: * create a production configuration * rename the web gui startup scrip to ipa-webgui * add an init script * chkconfig on the ipa-webgui init script * make the start script properly daemonize the app when not in a development directory. * Install everything to the correct places (/usr/sbin/ipa-webgui and /usr/share/ipa/ipagui mainly). There are some things still left to do: * Sort out the logging - the config needs to be adjusted so that logging messages end up in /var/log. --- ipa-server/ipa-gui/start-ipagui.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'ipa-server/ipa-gui/start-ipagui.py') diff --git a/ipa-server/ipa-gui/start-ipagui.py b/ipa-server/ipa-gui/start-ipagui.py index 2165e110..e69de29b 100644 --- a/ipa-server/ipa-gui/start-ipagui.py +++ b/ipa-server/ipa-gui/start-ipagui.py @@ -1,25 +0,0 @@ -#!/usr/bin/python -import pkg_resources -pkg_resources.require("TurboGears") - -from turbogears import update_config, start_server -import cherrypy -cherrypy.lowercase_api = True -from os.path import * -import sys - -# first look on the command line for a desired config file, -# if it's not on the command line, then -# look for setup.py in this directory. If it's not there, this script is -# probably installed -if len(sys.argv) > 1: - update_config(configfile=sys.argv[1], - modulename="ipagui.config") -elif exists(join(dirname(__file__), "setup.py")): - update_config(configfile="dev.cfg",modulename="ipagui.config") -else: - update_config(configfile="prod.cfg",modulename="ipagui.config") - -from ipagui.controllers import Root - -start_server(Root()) -- cgit