Failed to restart mariadb.service: Unit mariadb.service not found
<p>In my VPS mariadb running but I cant restart its giving Failed to restart error, my website running perfectly. This is a Ubuntu 16.04 runing with NGINX, MariaDB, Php7.0-fpm.</p>

<pre><code># service mariadb restart
Failed to restart mariadb.service: Unit mariadb.service not found.
</code></pre>

<p>Mariadb status showing its dead</p>

<pre><code>root@ubuntu-2gb-ams2-01:/var/lib# service mariadb status
● mariadb.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
</code></pre>

<p>I can see all database I have</p>

<pre><code>root@ubuntu-2gb-ams2-01:/var/lib# mysql -u root -p -e 'show databases'
Enter password:
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| protest            |
+--------------------+
</code></pre>

<p>I can login and create database without any problem using SSH, can any one please give me clue where I have to check?</p>