This also affects Artful running a sid container in lxd. Nothing is particularly MySQL specific I here I think, since the failure happens before MySQL runs at all. The only special systemd things I see in the service unit are the use of ExecStartPre on a bash script and PermissionsStartOnly=true. The full service unit definition is:
# MySQL systemd service file
[Unit]
Description=MySQL Community Server
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
User=mysql
Group=mysql
PermissionsStartOnly=true
ExecStartPre=/usr/share/mysql/mysql-systemd-start pre
ExecStart=/usr/sbin/mysqld
ExecStartPost=/usr/share/mysql/mysql-systemd-start post
TimeoutSec=600
Restart=on-failure
RuntimeDirectory=mysqld
RuntimeDirectoryMode=755
This also affects Artful running a sid container in lxd. Nothing is particularly MySQL specific I here I think, since the failure happens before MySQL runs at all. The only special systemd things I see in the service unit are the use of ExecStartPre on a bash script and PermissionsStar tOnly=true. The full service unit definition is:
# MySQL systemd service file
[Unit] target
Description=MySQL Community Server
After=network.
[Install] multi-user. target
WantedBy=
[Service] tOnly=true /usr/share/ mysql/mysql- systemd- start pre /usr/sbin/ mysqld /usr/share/ mysql/mysql- systemd- start post y=mysqld yMode=755
User=mysql
Group=mysql
PermissionsStar
ExecStartPre=
ExecStart=
ExecStartPost=
TimeoutSec=600
Restart=on-failure
RuntimeDirector
RuntimeDirector