Хайде още малко хинтове да дам как да си стартирате енджина и проксито на Владкис автоматично и ако ви крашне да се рестартира всичко само .
1.Правите си 2 скрипта със имена aceproxy.service и acestreamengine.service
Скриптовете са със следното съдържание
а) aceproxy.service
[Unit]
Description=acehttp
[Service]
ExecStart=/usr/bin/acehttp.py- тука си сложете вашата директория
Restart=always
[Install]
WantedBy=multi-user.target
б) acestreamengine.service
[Unit]
Description=acestream
[Service]
ExecStart=/usr/bin/
acestreamengine --client-console
Restart=always
[Install]
WantedBy=multi-user.target
Запаметявате и ги слагате във /etc/systemd/system
2. Отваряте един терминал и пишете systemctl daemon-reload след това стартирате самите сървиси със systemctl start aceproxy.service и съответно systemctl start acestreamengine.service . За да видите дали ви бачкат сървисите и дали има грешки ползвате командата systemctl status aceproxy.service или съответно systemctl status acestreamengine.service. Сървиси се рестартират с командата systemctl restart aceproxy.service или съответно systemctl restart acestreamengine.service.
Ако всичко сте направили както трябва ще видите това
Код:
nes 1-17/17 (END)...skipping...
● aceproxy.service - acehttp
Loaded: loaded (/etc/systemd/system/aceproxy.service; enabled; vendor preset: enabled)
Active: active (running) since сб 2016-07-23 22:31:36 EEST; 27min ago
Main PID: 5826 (python)
CGroup: /system.slice/aceproxy.service
└─5826 python /home/alkatraz/aceproxy-master/acehttp.py
юли 23 22:59:11 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:11 DEBUG AceClient_recvdata: Current position/last/buf: 1469303924/1469303952/15
юли 23 22:59:11 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:11 DEBUG AceClient_recvdata: RESUME event
юли 23 22:59:13 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:13 DEBUG AceClient_recvdata: STATUS changed to main:dl
юли 23 22:59:13 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:13 DEBUG AceClient_recvdata: Current position/last/buf: 1469303952/1469303953/15
юли 23 22:59:13 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:13 DEBUG AceClient_recvdata: Current position/last/buf: 1469303952/1469303954/15
юли 23 22:59:13 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:13 DEBUG AceClient_recvdata: PAUSE event
юли 23 22:59:14 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:14 DEBUG AceClient_recvdata: STATUS changed to main:buf
юли 23 22:59:14 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:14 DEBUG AceClient_recvdata: Current position/last/buf: 1469303952/1469303955/15
юли 23 22:59:15 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:15 DEBUG AceClient_recvdata: Current position/last/buf: 1469303952/1469303956/15
юли 23 22:59:16 alkatraz-EP45-DS3L acehttp.py[5826]: 23.07.2016 22:59:16 DEBUG AceClient_recvdata: Current position/last/buf: 1469303952/1469303957/15
И съответно това
Код:
acestreamengine.service - acestream
Loaded: loaded (/etc/systemd/system/acestreamengine.service; enabled; vendor preset: enabled)
Active: active (running) since сб 2016-07-23 22:39:29 EEST; 20min ago
Main PID: 6408 (acestreamengine)
CGroup: /system.slice/acestreamengine.service
└─6408 /usr/bin/acestreamengine --client-console
юли 23 22:58:43 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:58:43,880|Timer-Thread-303|acestream.BGInstanceConnection|send STATE 2
юли 23 22:58:46 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:58:46,169|Timer-Thread-305|acestream.BGInstanceConnection|send STATE 3
юли 23 22:59:11 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:11,554|Timer-Thread-312|acestream.BGInstanceConnection|send STATE 2
юли 23 22:59:13 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:13,760|Timer-Thread-314|acestream.BGInstanceConnection|send STATE 3
юли 23 22:59:28 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:28,307|Timer-Thread-317|acestream.BGInstanceConnection|send STATE 2
юли 23 22:59:31 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:31,084|Timer-Thread-319|acestream.BGInstanceConnection|send STATE 3
юли 23 22:59:49 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:49,544|Timer-Thread-322|acestream.BGInstanceConnection|send STATE 2
юли 23 22:59:51 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 22:59:51,817|Timer-Thread-324|acestream.BGInstanceConnection|send STATE 3
юли 23 23:00:14 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 23:00:14,491|Timer-Thread-328|acestream.BGInstanceConnection|send STATE 2
юли 23 23:00:17 alkatraz-EP45-DS3L acestreamengine[6408]: 2016-07-23 23:00:17,080|Timer-Thread-330|acestream.BGInstanceConnection|send STATE 3