sintonia/worker/install/systemd/libretime-worker.service
Jonas L 9c548b365e
feat: start celery worker programmatically (#2988)
### Description

Allow us to be more flexible with the option passed the celery worker,
for example, to change the logging level.
2024-04-13 21:03:57 +02:00

32 lines
673 B
Desktop File

[Unit]
Description=LibreTime Worker Service
PartOf=libretime.target
[Service]
NoNewPrivileges=true
CapabilityBoundingSet=
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full
Environment=PYTHONOPTIMIZE=2
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/worker.log
WorkingDirectory=@@WORKING_DIR@@/worker
ExecStart=/usr/local/bin/libretime-worker
Restart=always
User=libretime
Group=libretime
[Install]
WantedBy=multi-user.target