[Unit] Description=go-mmproxy %i After=mmproxy-routing.service Wants=mmproxy-routing.service [Service] Type=simple ExecStartPre=/bin/sleep 60 ExecStart=/bin/bash -c 'IFS="-" read -r port_in port_out <<< "%i"; exec /root/go/bin/go-mmproxy -l 0.0.0.0:$$port_in -4 127.0.0.1:$$port_out' Restart=always RestartSec=1 User=root LimitNOFILE=1048576 [Install] WantedBy=multi-user.target