summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/systemd/codeq-server.service4
-rw-r--r--scripts/systemd/codeq-web.service3
-rw-r--r--scripts/systemd/codeq.target6
3 files changed, 9 insertions, 4 deletions
diff --git a/scripts/systemd/codeq-server.service b/scripts/systemd/codeq-server.service
index 26e05f9..162c18e 100644
--- a/scripts/systemd/codeq-server.service
+++ b/scripts/systemd/codeq-server.service
@@ -1,7 +1,7 @@
# /etc/systemd/system/codeq-server.service
[Unit]
-Wants=postgresql.service codeq-prolog.service
-After=network.target postgresql.service codeq-prolog.service
+Wants=postgresql.service codeq-prolog.service codeq-web.service
+After=network.target postgresql.service codeq-prolog.service codeq-web.service
Description=CodeQ server
[Service]
diff --git a/scripts/systemd/codeq-web.service b/scripts/systemd/codeq-web.service
index 92d2076..cf6b26b 100644
--- a/scripts/systemd/codeq-web.service
+++ b/scripts/systemd/codeq-web.service
@@ -1,7 +1,6 @@
# /etc/systemd/system/codeq-web.service
[Unit]
-Wants=codeq-server.service
-After=network.target codeq-server.service
+After=network.target
Description=CodeQ web services
[Service]
diff --git a/scripts/systemd/codeq.target b/scripts/systemd/codeq.target
new file mode 100644
index 0000000..002a34c
--- /dev/null
+++ b/scripts/systemd/codeq.target
@@ -0,0 +1,6 @@
+[Unit]
+Requires=codeq-prolog.service codeq-saml.service codeq-server.service codeq-web.service
+Description=CodeQ
+
+[Install]
+WantedBy=multi-user.target