Open Mhdrimi opened 5 years ago
Hi guys i run a mtproto in my server I create the following file inside the root server and put it inside the specified values
nano /etc/systemd/system/MTProxy.service
edit this file [Unit] Description=MTProxy After=network.target
[Service] Type=simple WorkingDirectory=/opt/MTProxy ExecStart=/opt/MTProxy/mtproto-proxy -u nobody -p 8888 -H 443 -S Restart=on-failure
[Install] WantedBy=multi-user.target
notic: There is no opt folder in my server and the proxy is in the MTProxy folder and then objs / bin is installed. I do not know whether to opt or not
In step 5, I encountered the following error:
root@Aeolus-35669:~# systemctl status MTProxy.service ● MTProxy.service - MTProxy Loaded: loaded (/etc/systemd/system/MTProxy.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 2019-07-11 16:15:32 CEST; 3s ago Process: 4803 ExecStart=/opt/MTProxy/mtproto-proxy -u nobody -p 8888 -H 443 -S 1aca9ba4e24db47430b594b9368d0a1b (code=exited, status=200/CHDIR) Main PID: 4803 (code=exited, status=200/CHDIR)
Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Main process exited, code=exited, status=200/CHDIR Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Failed with result 'exit-code'. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Service hold-off time over, scheduling restart. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Scheduled restart job, restart counter is at 5. Jul 11 16:15:32 Aeolus-35669 systemd[1]: Stopped MTProxy. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Start request repeated too quickly. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Failed with result 'exit-code'. Jul 11 16:15:32 Aeolus-35669 systemd[1]: Failed to start MTProxy.
How can I solve these problems? What is the cause?
Try these instructions for pre-built package that includes SystemD integration.
Hi guys i run a mtproto in my server I create the following file inside the root server and put it inside the specified values
nano /etc/systemd/system/MTProxy.service
edit this file [Unit] Description=MTProxy After=network.target
[Service] Type=simple WorkingDirectory=/opt/MTProxy ExecStart=/opt/MTProxy/mtproto-proxy -u nobody -p 8888 -H 443 -S
Restart=on-failure
[Install] WantedBy=multi-user.target
notic: There is no opt folder in my server and the proxy is in the MTProxy folder and then objs / bin is installed. I do not know whether to opt or not
In step 5, I encountered the following error:
Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Main process exited, code=exited, status=200/CHDIR Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Failed with result 'exit-code'. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Service hold-off time over, scheduling restart. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Scheduled restart job, restart counter is at 5. Jul 11 16:15:32 Aeolus-35669 systemd[1]: Stopped MTProxy. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Start request repeated too quickly. Jul 11 16:15:32 Aeolus-35669 systemd[1]: MTProxy.service: Failed with result 'exit-code'. Jul 11 16:15:32 Aeolus-35669 systemd[1]: Failed to start MTProxy.
How can I solve these problems? What is the cause?