magma restart server code example
Example 1: rails kill server
kill -9 $(lsof -i tcp:3000 -t)
Example 2: restart samba service
sudo service smbd status
sudo service smbd start
sudo service smbd stop
sudo service smbd restart
kill -9 $(lsof -i tcp:3000 -t)
sudo service smbd status
sudo service smbd start
sudo service smbd stop
sudo service smbd restart