Started adding the scripts to automatically run the scheduler at startup.

This commit is contained in:
Paul Baranowski 2010-12-03 16:03:18 -05:00
parent 3c12256cb8
commit a255fc4508
6 changed files with 49 additions and 7 deletions

View file

@ -0,0 +1,14 @@
#!/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