From 58732b6dc67f97ee895aacef3a30ac2f232a01c2 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 2 Jan 2019 04:26:45 -0500 Subject: add basic service file --- id.service | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 id.service (limited to 'id.service') 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 -- cgit v1.2.3-70-g09d2