| 1234567891011121314151617181920212223 |
- [Unit]
- Description=webshop service
- After=network.target
- [Service]
- Type=simple
- Restart=always
- RestartSec=1
- User=<user>
- Group=<user>
- WorkingDirectory=<path_to_webshop>
- # this makes Python send logs to journalctl right-away, without buffering
- Environment="PYTHONUNBUFFERED=1"
- # this makes sure git-annex is available in the PATH (/usr/local/bin:/usr/bin:/bin)
- Environment="PATH=/usr/local/bin:/usr/bin:/bin:/<path_to_webshop>/env/bin"
- ExecStart=/bin/bash <path_to_webshop>server.sh
- [Install]
- WantedBy=multi-user.target
|