From 912783135badb11009db497b71cdf08a597b1e39 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 11 Feb 2016 17:47:53 +0100 Subject: Update systemd unit files and add codeq.target For some reason, codeq-web should be started after codeq-web. --- scripts/systemd/codeq-server.service | 4 ++-- scripts/systemd/codeq-web.service | 3 +-- scripts/systemd/codeq.target | 6 ++++++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 scripts/systemd/codeq.target 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 -- cgit v1.2.1