TelegramMessenger / MTProxy

4.86k stars 806 forks source link

Problem with service #579

Open matosh1 opened 1 week ago

matosh1 commented 1 week ago

Hi all. I came across that I started setting up the service. I created a secret key, then created a proxy tag in the telegram. I entered the parameters, but the following error occurs when starting Jun 23 17:22:11 matoshi systemd[1]: MTProxy.service: Main process exited, code=exited, status=2/INVALIDARGUMENT Jun 23 17:22:11 matoshi systemd[1]: MTProxy.service: Failed with result 'exit-code'.

My options [Unit] Description=MTProxy After=network.target

[Service] Type=simple WorkingDirectory=/root/opt/MTProxy ExecStart=/root/objs/bin/MTProxy/mtproto-proxy -u nobody -p 8888 -H 443 -S MySecretKey -P MyProxyTag Restart=on-failure

[Install] WantedBy=multi-user.target