2021-05-21 01:10:01 +02:00
|
|
|
[Unit]
|
|
|
|
Description=I hate money
|
|
|
|
Requires=network.target mysql.service
|
|
|
|
After=network.target mysql.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=__APP__
|
2023-06-12 16:53:23 +02:00
|
|
|
Group=__APP__
|
2023-06-10 22:38:45 +02:00
|
|
|
WorkingDirectory=__INSTALL_DIR__/
|
2023-06-10 21:45:19 +02:00
|
|
|
Environment=IHATEMONEY_SETTINGS_FILE_PATH=__INSTALL_DIR__/ihatemoney.cfg
|
|
|
|
ExecStart=__INSTALL_DIR__/venv/bin/gunicorn -c __INSTALL_DIR__/gunicorn.conf.py ihatemoney.wsgi:application
|
2021-05-21 01:10:01 +02:00
|
|
|
Restart=always
|
|
|
|
RestartSec=2
|
|
|
|
|
2023-06-12 16:53:23 +02:00
|
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=inherit
|
|
|
|
|
2021-05-21 01:10:01 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|