Add installe, no automation yet

This commit is contained in:
2024-07-17 17:28:00 +02:00
parent 638736a702
commit 9a8136c8c4
3 changed files with 61 additions and 0 deletions

11
helper/install.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
TARGET_DIR="$HOME/.local/poo-recorder"
mkdir -p $TARGET_DIR
cp ../main.py ../poo.py ../requirements.txt $TARGET_DIR
python -m venv "$TARGET_DIR/venv"
$TARGET_DIR/venv/bin/pip install -r $TARGET_DIR/requirements.txt

15
helper/poo_recorder.conf Normal file
View File

@@ -0,0 +1,15 @@
[program:poo_recorder_backend]
environment=PYTHONUNBUFFERED=1
command=
directory=
user=
group=
autostart=true
autorestart=true
startsecs=1
startretries=100
stopwaitsecs=30
redirect_stderr=true
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stdout_logfile_maxbytes=5MB
stdout_logfile_backups=5