summarylogtreecommitdiffstats
path: root/anki-sync-server.service
AgeCommit message (Collapse)Author
2022-01-23Change Restart On Failure Triess7hoang
Was originally causing some problems with nginx but now they're unlinked.
2022-01-23Upholds to Wants and remove Propagations7hoang
2022-01-22Change Restart Limits7hoang
nginx is getting itself banned by systemctl. I don't know if the upholds is just super quickly restarting or if it's mirroring the settings set for anki-sync-server.service but I figure it's worth a shot changing these settings anyway.
2022-01-20Add Reload Propagation To Nginxs7hoang
Testing out how upholds works without being annoying about it. Currently with the default nginx.service file, the service will fail and restart really really rapidly causing systemctl to ban it and prevent it from starting ever again. This is obviously a problem and resetting it requires you to not just give it a restart but to infact turn off anki-sync-server completely so it doesn't try to immediately auto restart nginx.
2022-01-20Remove What Should Be Implicits7hoang
network.target should be happening way before multi-user.target wants so it shouldn't need to be here.
2022-01-20Rate Limit Restarts To Consume less Resourcess7hoang
2022-01-20Add Stop Propagations7hoang
Add a stop propagation to nginx for convenience. Hopefully other services also have an upholds for nginx dependencies so it'll just restart rather than just kill the server and leave people wondering.
2022-01-20Edit Descriptions7hoang
2022-01-20Change Dependencies Of Systemd Service Units7hoang
Using `Upholds` here because the anki-sync-service needs nginx for unchunking purposes as specified in the github project. I only checked the manual to find this option now so I'm only adding it now. ---- Other ones considered: `Wants` : This was the default choice but there was an even better option listed further down the man page. `Requires` : This server doesn't technically require nginx in order to fully start itself. It just doesn't fully function without it. `Requisite` : For the reason above it makes sense then to try and at least start nginx when starting this service which is what Want does. `BindsTo` : A superset of `Requires`. Sounds like a nice idea at first glance but, I think it might help in diagnosing problems if only one or the other went down rather than both.
2020-08-05Remove Auto Restart On Systemd Services7hoang
When it works it should work immediately. When it dies it should probably just stay dead.
2019-04-19Add Files For New Implementations7hoang
2016-06-29Rrefactor everythingJanne Heß
2016-03-13Initial commit of the anki sync serverJanne Heß