marcus67 / little_brother

Parental Control Application implemented in Python 3 packaged for Debian and Ubuntu to monitor and limit kids' play time on Linux hosts
GNU General Public License v3.0
59 stars 9 forks source link

Race condition during service start #125

Closed marcus67 closed 3 years ago

marcus67 commented 3 years ago

During the boot process the LittleBrother service often fails. A later restart fixes the problem. Since LittleBrother only depends on the database it is likely that the database has not started up yet. It may be necessary to specify an additional / a different dependency in the `systemd' service file.

marcus67 commented 3 years ago

The [Unit] section of the service file was changed to:

[Unit]
Description=Tool for monitoring processes    
After=network.target mysql.service
Wants=mysql.service