I have a test systemd service that I am testing. I have test.service which looks like this
[Unit] Description=Dovid Demo Service After=mariadb.service Requires=mariadb.service [Service] ExecStart=/home/dovid/test.sh User=dovid Group=dovid [Install] WantedBy=default.target
If I do
systemctl start test
It will first start MariaDB and then start my script. However if I have MariaDB masked (I did systemctl mask mariadb) then MariaDB wont start yet systemd will start up test.sh. Shouldn't it fail because start a required process which in this case is MariaDB?