How to set up the Proxy Manager as a system service?

Support Account
Support Account
  • Updated
  • Sign in as 'root' to the remote server (running Ubuntu)
  • Create a service file in:
    /etc/systemd/system/pmgr.service
    [Unit]
    Description=Proxy Manager
    Wants=network-online.target
    After=network-online.target
    
    [Service]
    Type=simple
    Restart=always
    RestartSec=5
    Environment=NODE_ENV=production
    ExecStart=/usr/bin/pmgr
    User=root
    StandardOutput=null
    StandardError=null
    
    [Install]
    WantedBy=multi-user.target
    
  • Reload service files: 
    $ systemctl daemon-reload
  • Start Proxy Manager service: 
    $ systemctl start pmgr
  • Check status: 
    $ systemctl status pmgr.service
  • You have completed setting up Proxy Manager as a service. You can now control your new service: 
    $ service pmgr [stop|start|restart]
Share this

Was this article helpful?

0 out of 0 found this helpful