2017-03-08 12:39:59 +01:00
|
|
|
[Unit]
|
2022-02-22 20:03:31 +01:00
|
|
|
Description=LibreTime Worker Service
|
2022-05-08 19:20:03 +02:00
|
|
|
PartOf=libretime.target
|
2017-03-08 12:39:59 +01:00
|
|
|
|
|
|
|
[Service]
|
2022-09-27 11:51:17 +02:00
|
|
|
NoNewPrivileges=true
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
PrivateDevices=true
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateUsers=true
|
|
|
|
ProtectClock=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
2022-09-27 13:17:43 +02:00
|
|
|
ProtectHostname=true
|
2022-09-27 11:51:17 +02:00
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelTunables=true
|
2022-09-27 13:17:43 +02:00
|
|
|
ProtectProc=invisible
|
2022-09-27 11:51:17 +02:00
|
|
|
ProtectSystem=full
|
|
|
|
|
2022-05-23 17:16:02 +02:00
|
|
|
Environment=LIBRETIME_CONFIG_FILEPATH=@@CONFIG_FILEPATH@@
|
2022-09-27 11:51:17 +02:00
|
|
|
Environment=LIBRETIME_LOG_FILEPATH=@@LOG_DIR@@/worker.log
|
2022-05-23 17:16:02 +02:00
|
|
|
WorkingDirectory=@@WORKING_DIR@@/worker
|
2022-02-22 20:03:31 +01:00
|
|
|
|
2022-03-29 14:15:26 +02:00
|
|
|
ExecStart=/usr/bin/sh -c 'celery worker \
|
2022-02-22 20:03:31 +01:00
|
|
|
--app=libretime_worker.tasks:worker \
|
|
|
|
--config=libretime_worker.config \
|
|
|
|
--time-limit=1800 \
|
|
|
|
--concurrency=1 \
|
2022-03-29 14:15:26 +02:00
|
|
|
--loglevel=INFO \
|
|
|
|
--logfile=$LIBRETIME_LOG_FILEPATH'
|
2022-09-27 11:51:17 +02:00
|
|
|
Restart=always
|
|
|
|
|
2022-07-06 16:21:40 +02:00
|
|
|
User=libretime
|
|
|
|
Group=libretime
|
2017-03-08 12:39:59 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|