Started adding the scripts to automatically run the scheduler at startup.
This commit is contained in:
parent
3c12256cb8
commit
a255fc4508
6 changed files with 49 additions and 7 deletions
14
pypo/install/pypo-fetch-daemon.sh
Normal file
14
pypo/install/pypo-fetch-daemon.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue