Upgrading SQLGrey Debian Wheezy to Jessie
SQLGrey itself will not be updated during the upgrade towards Jessie, however the change to Systemd will result in a stub automatically created by Systemd around the original init.
The problem I encountered was, that SQLGrey would start before my database (MySQL). Hence you receive something like the following in
The problem here is, that the generated stub is not obeying the init scripts dependencies and not having any Systemd ones, hence the services are starting in a “wild” order.
So what is the solution
We need to create at least the SQLGrey unit file and add the dependency into it.
/etc/systemd/system/sqlgrey.service and add:
mysql.service in the
After line. This is the needed dependency.
However you can reference the stubs as well.
If you need to adapt this for other services: To find the name of the stub you can use
systemd-analyze blame. It gives you a list of the services started. Details you can get with
systemctl status mysql.service. The details will tell you in the
Loaded line if it is a real unit file or just a init script stub.