How do I restart the Metasploit service on Linux? To restart the Metasploit service, open a command line terminal and run the following command: $ sudo bash /opt/metasploit-<version> ctlscript.sh restart