New answers tagged

0

You asked multiple questions. I'll answer the question: "Why doesn't my custom systemd service start at boot?" The answer is because you haven't enabled it. When you run systemctl enable my-service-name, The [Install] block in your Unit file is acted upon. In this case, you have instructed systemd to start up the service as part of reaching the multi-user....


0

Got lucky on this one (thanks to this). Go to the folder "/tmp/.X11-unix/" and list content: $ cd /tmp/.X11-unix/ $ ll I found there several X0, X4, X5... files (one for each of my blocked user). Each one is associated to a session, and should be deleted when the session is closed, BUT it is not always. DELETE IT: $ sudo rm X4 and VNC session should ...


1

I assume you're using systemd, so I would recommend modifying the systemd service file as needed. The Restart= flag indicates whether or not the service should be started if not running, depending on why it's not running. You can have: Restart=on-failure as an example. This way the service will continue trying to start until it succeeds. If you want ...


8

On any system using systemd, running an init.d script directly won't be the best way to start a service, since it will bypass all settings and bookkeeping usually done by systemd itself. Also, you might not even have an init script, the service might be described only in a unit file. With "old-style" sysvinit there was not much bookkeeping to do: starting ...


1

You can use the Monit for that. It will automatically check for services running and will start them if they not. Monit even can email you about that You'll need to configure for that first, but Monit is a great and lightweight tool for every system administrator. You can look for few examples how to install and configure Monit here.


0

It's likely your question didn't attract an answer because of the generic question of "What's wrong with my file?". Try asking a specific question next time. In this case you think the issue might be that the script before MySQL was ready. You can confirm if that's the case. Manually turn off MySQL and run the script. It should produce the same result. ...



Top 50 recent answers are included