Start python application (MoinMoin) at startup / by running a script
Dear all,
I have a personal copy of MoinMoin installed locally on my laptop running Ubuntu 10.04. I usually run the standalone server by changing to the dir where the moin.py resides and executing: Code:
./moin.py server standalone Code:
#!/bin/bash Code:
sh runmoin.sh I get this error message (I think from MoinMoin) Code:
ConfigurationError How would I automatically start the MoinMoin standalone directly after login? Any help is greatly appreciated! Thanks, xbeck. |
Have you tried using absolute paths instead of relative ones?
|
Moin(-1.9.3) comes with a start script : moin-1.9.3/build/scripts-2.6/moin :
Code:
#! /usr/bin/python .. |
Thanks for your replies!
grail: yes, I have used absolute paths, no difference: it works if I execute the script in the same directory (sh runmoin_fullpaths.sh), but if I make a link to the script and put this link in /bin, same 'Configuration' error EDIT: even trying sh /full/path/to/script/runmoin.sh also gives 'Configuration' error. knudfl: Interesting. But gives same error with 'Configuration' as above. Apparently there is really a difference between executing the script / the command directly in the dir or running it from somewhere else?! |
cd moin-1.9.3/
# python setup.py install which moin : The reply is : /usr/bin/moin Meaning that you can run 'moin server standalone' from any location. .. |
Quote:
The script just contains the two lines Code:
#!/bin/bash But it became clear that this is probably more related to MoinMoin, so I will ask there. Thanks! |
Well I am not sure what the issue might be, but an easy enough solution for your script is to put a cd into it so you are running from the location.
|
All times are GMT -5. The time now is 09:27 PM. |