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/raw_scheduler.service

16 lines
532 B
Desktop File

[Unit]
Description=Photonix raw_scheduler
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 5 && nice -n 17 __INSTALL_DIR__/venv/bin/python __INSTALL_DIR__/srv/photonix/manage.py raw_scheduler"
StandardOutput=append:/var/log/__APP__/__APP__-raw_scheduler.log
StandardError=inherit
[Install]
WantedBy=multi-user.target