diff options
author | Karl MacMillan <kmacmill@redhat.com> | 2007-09-28 16:46:12 -0400 |
---|---|---|
committer | Karl MacMillan <kmacmill@redhat.com> | 2007-09-28 16:46:12 -0400 |
commit | 679343594d86d57c85d1a6bb5333c83ca8bacd78 (patch) | |
tree | 38bdfb23b5e561863c8c09f03abb9ee053a5ff92 /ipa-server/ipa-gui/start-ipagui.py | |
parent | 50d12d6d2e680d32a5940afa0242c2c75df57d1f (diff) | |
download | freeipa.git-679343594d86d57c85d1a6bb5333c83ca8bacd78.tar.gz freeipa.git-679343594d86d57c85d1a6bb5333c83ca8bacd78.tar.xz freeipa.git-679343594d86d57c85d1a6bb5333c83ca8bacd78.zip |
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.
Diffstat (limited to 'ipa-server/ipa-gui/start-ipagui.py')
-rw-r--r-- | ipa-server/ipa-gui/start-ipagui.py | 25 |
1 files changed, 0 insertions, 25 deletions
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()) |