1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00
ihatemoney_ynh/conf/systemd.service
Félix Piédallu ce58c792c7 Full revamp of ihatemoney_ynh:
* Use example_ynh as a template
* Implement change_url
* Use the new yunohost permissions system
* Use a python3 venv
* Use a systemd service + gunicorn
* Allow multiple instances (stop installing in /opt/yunohost/ihatemoney)
2021-11-10 11:45:14 +01:00

15 lines
382 B
Desktop File

[Unit]
Description=I hate money
Requires=network.target mysql.service
After=network.target mysql.service
[Service]
Type=simple
User=__APP__
Environment=IHATEMONEY_SETTINGS_FILE_PATH=__FINALPATH__/ihatemoney.cfg
ExecStart=__FINALPATH__/venv/bin/gunicorn -c __FINALPATH__/gunicorn.conf.py ihatemoney.wsgi:application
Restart=always
RestartSec=2
[Install]
WantedBy=multi-user.target