l
Size: a a a
l
ВМ
[Unit]
Description=avito parser python
After=network.target
[Service]
ExecStart=/usr/bin/python3 /home/myuser/new.py
Restart=always
RestartSec=600000ms
StartLimitInterval=0
[Install]
WantedBy=multi-user.target
ВМ
ВМ
ВМ
ВМ
ВМ
[Unit]
Description=avito parser python
[Service]
StartLimitInterval=0
CPUWeight=1000
CPUQuota=40%
Type=simple
TimeoutStartSec=2
KillMode=process
SendSIGKILL=yes
Restart=always
RestartSec=2
ExecStart=/usr/bin/bash -c "/usr/bin/python3 /home/usr/new.py"
[Install]
WantedBy=graphical.target
ВМ
ВМ
ВМ
ВМ
ВМ
ВМ