aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--id.service19
1 files changed, 19 insertions, 0 deletions
diff --git a/id.service b/id.service
new file mode 100644
index 0000000..25852da
--- /dev/null
+++ b/id.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Identity service
+ConditionPathExists=/home/guillaume/projects/id
+After=network.target
+
+[Service]
+Type=simple
+User=guillaume
+Group=guillaume
+
+Restart=on-failure
+RestartSec=10
+StartLimitInterval=60
+
+WorkingDirectory=/home/guillaume/projects/id
+ExecStart=/home/guillaume/projects/id/id -a 127.0.0.1:8080 postgres://auth_master@localhost/authdb?sslmode=disable horel.org
+
+[Install]
+WantedBy=multi-user.target