- Fix GNIZA_CONFIG_DIR in systemd service: /usr/local/gniza/etc -> /etc/gniza - Add LOG_DIR and PYTHONPATH to systemd environment - Fix default CONFIG_DIR in web/app.py and web/__main__.py - Refactor install.sh web setup into function for robustness - Replace Unicode box-drawing chars with ASCII in install.sh - Read from /dev/tty to prevent stdin issues Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
375 B
Desktop File
18 lines
375 B
Desktop File
[Unit]
|
|
Description=GNIZA Web Dashboard
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/usr/bin/python3 -m web
|
|
WorkingDirectory=/usr/local/gniza
|
|
Environment=GNIZA_DIR=/usr/local/gniza
|
|
Environment=GNIZA_CONFIG_DIR=/etc/gniza
|
|
Environment=LOG_DIR=/var/log/gniza
|
|
Environment=PYTHONPATH=/usr/local/gniza
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|