TT#105871 Check for mariadbd process on bullseye

It's no longer running as mysqld but as mariadbd process.

The mysql.service is present (as in: reachable) but not a
separate systemd unit any longer:

| root@spce:~# systemctl status mysql.service | head -1
| ● mariadb.service - MariaDB 10.5.8 database server
| root@spce:~# systemctl show -p Names --value mariadb.service
| mariadb.service mysqld.service mysql.service

Fixes:

| not ok 505 - Process: mysqld: running: doesn't match, expect: [true] found: [false]
| not ok 205 - Service: mysql.service: enabled: doesn't match, expect: [true] found: [false]

Change-Id: I0740461e0dd77a3d5d8c285fd66018192e3b6308
mr9.3.1
Michael Prokop 6 years ago
parent 4e164bf39f
commit cff271e113

@ -11,11 +11,16 @@ process:
getty:
running: [% general.init_system == 'systemd' ? 'false' : 'true' %]
{{if eq .Env.DEBIAN_RELEASE "11"}}
mariadbd:
running: true
{{else}}
mysqld:
running: true
mysqld_safe:
running: [% general.init_system == 'systemd' ? 'false' : 'true' %]
{{end}}
redis-server:
running: true

@ -51,9 +51,11 @@ service:
enabled: true
running: true
{{if lt .Env.DEBIAN_RELEASE "11"}}
mysql.service:
enabled: true
running: true
{{end}}
rsyslog.service:
enabled: true

Loading…
Cancel
Save