Added an installer script

This commit is contained in:
Cynopolis
2025-04-02 11:47:04 -04:00
parent 4baed385d8
commit 7aeb6b8aad
5 changed files with 54 additions and 16 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=A simple chat interface and autoresponder for meshtastic
[Service]
Type=simple
WorkingDirectory=${WORKING_DIRECTORY}/
ExecStart=sudo ${WORKING_DIRECTORY}/meshtastic/bin/python -m flask --app ${WORKING_DIRECTORY}/app.py run --host=0.0.0.0 --port=80
Restart=always
User=quinn
StandardOutput=append:${WORKING_DIRECTORY}/logs/meshtastic_system.log
StandardError=append:${WORKING_DIRECTORY}/logs/meshtastic_system_error.log
[Install]
WantedBy=multi-user.target