Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run the service after mysql service #242

Closed
laBecasse opened this issue Jan 14, 2020 · 1 comment
Closed

Run the service after mysql service #242

laBecasse opened this issue Jan 14, 2020 · 1 comment

Comments

@laBecasse
Copy link

@laBecasse laBecasse commented Jan 14, 2020

I realize that the writefreely service starts with errors at the startup of my system, because there is a error of the connection to the mysql server. So, I propose to replace the service instruction on this page by the following, which solves my problem:

[Unit]
Description=WriteFreely Instance
After=syslog.target network.target mysql.service

[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
WorkingDirectory=/var/www/example.com
ExecStart=/var/www/example.com/writefreely
Restart=always

[Install]
WantedBy=multi-user.target

Notice that I added mysql.servicein the After list at the second iine.

@thebaer

This comment has been minimized.

Copy link
Member

@thebaer thebaer commented Jan 15, 2020

Thanks for bringing this up! I've added that as an option in the documentation for anyone who has MySQL running on the same server their WriteFreely instance is running on.

Just for the future, note that you can always report documentation issues in the github.com/writefreely/documentation repo. Thanks again for the input!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.