summaryrefslogtreecommitdiff
path: root/scripts/systemd
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-10-17 22:06:18 +0200
committerAleš Smodiš <aless@guru.si>2015-10-17 22:06:18 +0200
commit8893bb730b7d4127f1e4f8a47146d5dfb9300c81 (patch)
tree8caec96890db6348ac932641e1b25320ddfa9615 /scripts/systemd
parent79c4800ac99c24400ad9da91101b48d6a55234b9 (diff)
Implemented init script for the SAML daemon, modified the refresh-and-deploy script accordingly.
Diffstat (limited to 'scripts/systemd')
-rw-r--r--scripts/systemd/codeq2
-rw-r--r--scripts/systemd/codeq-saml.service13
2 files changed, 15 insertions, 0 deletions
diff --git a/scripts/systemd/codeq b/scripts/systemd/codeq
index 28b133b..e6c79ec 100644
--- a/scripts/systemd/codeq
+++ b/scripts/systemd/codeq
@@ -10,3 +10,5 @@ CODEQ_DB_PASS=c0d3q
CODEQ_SERVER_LOG=/var/log/codeq-server.log
CODEQ_WEB_LOG=/var/log/codeq-web.log
CODEQ_GIT_BRANCH=release
+CODEQ_SAML_SERVICE_URL=https://codeq.si/Shibboleth.sso/
+CODEQ_SAML_LOG=/var/log/codeq-saml.log
diff --git a/scripts/systemd/codeq-saml.service b/scripts/systemd/codeq-saml.service
new file mode 100644
index 0000000..5926daf
--- /dev/null
+++ b/scripts/systemd/codeq-saml.service
@@ -0,0 +1,13 @@
+# /etc/systemd/system/codeq-saml.service
+[Unit]
+After=network.target
+Description=CodeQ SAML services
+
+[Service]
+ExecStart=/usr/bin/nodejs /var/local/codeq-server/saml/saml.js
+Restart=on-failure
+Type=simple
+StandardInput=null
+StandardOutput=null
+StandardError=null
+EnvironmentFile=-/etc/default/codeq