How do I start, stop, and restart the Metasploit service on Linux?
Sometimes Metasploit may get stuck in a weird state. In these cases, the best solution is to restart the Metasploit services.
To start, stop, and restart the Metasploit service, run the following commands:
$ sudo bash /opt/metasploit/ctlscript.sh start
$ sudo bash /opt/metasploit/ctlscript.sh stop
$ sudo bash /opt/metasploit/ctlscript.sh restart