From 5debe56349aceb192e0f42c9ad2c2568788a3468 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Wed, 15 Jul 2020 00:11:31 +0200 Subject: [PATCH] [doc] README systemd details --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 850f057..781d37c 100644 --- a/README.md +++ b/README.md @@ -112,3 +112,28 @@ If you need to launch the test suite (only works if you have pytest installed) : ### Production The production server may use different init systems. As our main server is Debian-based, we use systemd services to manage the api server. Find the right service files and configure them properly in order to make your production setup perfect. + + +``` +cp conf/systemd/lirmm_api* /etc/systemd/system/ +systemctl daemon-reload +systemctl start lirmm_api +``` + + +To make it start at boot : + + +`systemctl enable lirmm_api` + + + +To get the logs : + + +``` +journalctl -f --unit lirmm_api + +``` + +