Use the below simple script to check the SQL service status in Linux environment
systemctl status mssql-server — no-pager | grep -e Active
Below syntax would give detailed summary for SQL Server status & uptime
systemctl status mssql-server — no-pager