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

16 lines
572 B
Desktop File

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