More improvements to the pypo installer:

* Added installation of daemontool scripts
 * Put files in more appropriate places
 * Renamed files for consistency
This commit is contained in:
paul.baranowski 2010-12-06 18:44:47 -05:00
parent a255fc4508
commit 80b066a4e1
11 changed files with 788 additions and 313 deletions

View file

@ -1,14 +0,0 @@
#!/bin/sh
pypo_user="pypo"
export HOME="/home/pypo/"
# Location of pypo_cli.py Python script
pypo_path="/opt/pypo/bin"
pypo_script="pypo_cli.py"
# note the -u when calling python! we need it to get unbuffered binary stdout and stderr
echo "*** Daemontools: starting daemon"
cd ${pypo_path}
exec 2>&1
exec setuidgid ${pypo_user} \
python -u ${pypo_path}${pypo_script} \
-f
# EOF