diff options
author | s7hoang | 2022-01-15 21:31:47 -0500 |
---|---|---|
committer | s7hoang | 2022-01-20 04:12:27 -0500 |
commit | 37f2dbe7a86b73224b8cfe9e70fe29f86974d874 (patch) | |
tree | 3aecee0d495e6a8fcd989b37f980cd04e7933f59 | |
parent | 24f28313609458a50d6061fa1d7e053fbfc13f4d (diff) | |
download | aur-37f2dbe7a86b73224b8cfe9e70fe29f86974d874.tar.gz |
Change Dependencies Of Systemd Service Unit
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.
-rw-r--r-- | anki-sync-server.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/anki-sync-server.service b/anki-sync-server.service index a4698abba22d..9b6c168d2190 100644 --- a/anki-sync-server.service +++ b/anki-sync-server.service @@ -2,6 +2,7 @@ Description=A sync server for anki After=network.target StartLimitIntervalSec=1 +Upholds=nginx.service [Service] Type=simple |