1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Metasploit Framework RPC Daemon After=postgresql.service [Service] Type=simple EnvironmentFile=/etc/default/metasploit ExecStart=/usr/bin/msfrpcd -f -a $IP_ADDR -U $RPC_USER -P $RPC_PASSWORD -S -p $PORT PIDFile=/run/metasploit.pid [Install] WantedBy=multi-user.target