2017-03-08 12:39:59 +01:00
|
|
|
[Unit]
|
|
|
|
Description=LibreTime Media Analyzer 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
|
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
|
|
|
|
|
2024-01-07 14:30:20 +01:00
|
|
|
Environment=PYTHONOPTIMIZE=2
|
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@@/analyzer.log
|
2022-05-23 17:16:02 +02:00
|
|
|
WorkingDirectory=@@WORKING_DIR@@/analyzer
|
2022-01-17 09:26:30 +01:00
|
|
|
|
2021-10-01 17:43:20 +02:00
|
|
|
ExecStart=/usr/local/bin/libretime-analyzer
|
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
|