Frp recently in use within the network penetration, so that their own tools to access outside the network. Own host within the network is sometimes necessary to restart normal access to tools, so the use of tools for process management supervisor, supervisor from the start to a very necessary requirements. Following is a brief description under my solutions found on stackoverflow, and go with my own configuration.
1. Add supervisord.service file in / lib / systemd / system / in
Configuration is as follows:
[Unit] Description=Supervisord Service [Service] Restart=on-failure RestartSec=42s User=myuser ExecStart=/home/myuser/.pyenv/versions/3.6.8/bin/supervisord -n -c /home/myuser/etc/supervisord.conf [Install]
User replaced with your user name, replace ExecStart command supervisord path to your own path supervisord.conf same replace it with your own configuration path, common path is /etc/supervisord.conf, due to a permissions problem in my user directory added configuration.
2. Run the following command
sudo systemctl daemon-reload
sudo systemctl enable supervisord.service
sudo systemctl start supervisord.service
You can see the final restart, supervisor has been from the start
3. Description
This method is applicable ubuntu16.04 and above
reference: