1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/photonix_ynh.git synced 2024-09-03 19:56:29 +02:00
photonix_ynh/conf/classification_location_processor.service

16 lines
593 B
Desktop File

[Unit]
Description=Photonix classification_location_processor
After=network.target __APP__-app_server.service
[Service]
Type=simple
User=__APP__
Group=__APP__
WorkingDirectory=__INSTALL_DIR__/srv/photonix
EnvironmentFile=__INSTALL_DIR__/photonix.env
ExecStart=/usr/bin/env bash -c "PATH=__INSTALL_DIR__/venv/bin:$PATH sleep 10 && nice -n 19 __INSTALL_DIR__/venv/bin/python __INSTALL_DIR__/srv/photonix/manage.py classification_location_processor"
StandardOutput=append:/var/log/__APP__/__APP__-classification_location_processor.log
StandardError=inherit
[Install]
WantedBy=multi-user.target