Compare commits
2 Commits
4eb7bc76c2
...
a894821be5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a894821be5 | ||
|
|
dc23a315de |
36
Auto_Anons_Generator.service
Normal file
36
Auto_Anons_Generator.service
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Auto Anons Generator
|
||||||
|
Documentation=https://git.tvstart.ru/lexx/AE_script
|
||||||
|
After=network.target
|
||||||
|
Wants=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=eng
|
||||||
|
Group=eng
|
||||||
|
WorkingDirectory=/home/eng/
|
||||||
|
EnvironmentFile=/mnt/aescript/.env
|
||||||
|
|
||||||
|
# Защита сервиса
|
||||||
|
NoNewPrivileges=yes
|
||||||
|
ProtectSystem=strict
|
||||||
|
ProtectHome=yes
|
||||||
|
ReadWritePaths=/home/eng/ /mnt/aescript/
|
||||||
|
|
||||||
|
# Лимиты ресурсов
|
||||||
|
MemoryLimit=1G
|
||||||
|
CPUQuota=80%
|
||||||
|
|
||||||
|
ExecStart=/home/eng/.venv/bin/python AF_script_test_4.py
|
||||||
|
StandardOutput=journal
|
||||||
|
StandardError=journal
|
||||||
|
SyslogIdentifier=AF
|
||||||
|
|
||||||
|
# Поведение при перезапуске
|
||||||
|
Restart=always
|
||||||
|
RestartSec=10
|
||||||
|
StartLimitInterval=300
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user