aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authornailyk-fr <nailyk_git@nailyk.fr>2019-05-16 21:23:00 +0200
committerAlexis Metaireau <alexis@notmyidea.org>2019-05-21 10:46:41 +0200
commitbb5a1cfe843350881fee596b8bbe44f2d5998b79 (patch)
treede085372945ee758791739c0b579521c58cb506b /docs
parentabfaa9647cf0fd77e1f1a74415cf76ed178d9beb (diff)
downloadihatemoney-mirror-bb5a1cfe843350881fee596b8bbe44f2d5998b79.zip
ihatemoney-mirror-bb5a1cfe843350881fee596b8bbe44f2d5998b79.tar.gz
ihatemoney-mirror-bb5a1cfe843350881fee596b8bbe44f2d5998b79.tar.bz2
doc: installation: Add systemd service
* Next to the addition of `conf/ihatemoney.service`, add installation notice. Signed-off-by: nailyk-fr <nailyk_git@nailyk.fr>
Diffstat (limited to 'docs')
-rw-r--r--docs/installation.rst10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index 11a6db6..8cf5dd7 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -130,7 +130,7 @@ With Apache and mod_wsgi
3. Create an Apache virtual host, the command ``ihatemoney generate-config apache-vhost.conf`` will output a good starting point (read and adapt it)
4. Activate the virtual host if needed and restart Apache
-With Nginx, Gunicorn and Supervisord
+With Nginx, Gunicorn and Supervisord/systemd
------------------------------------
1. Create a dedicated unix user (here called `ihatemoney`), required dirs, and fix permissions::
@@ -143,16 +143,22 @@ With Nginx, Gunicorn and Supervisord
ihatemoney generate-config gunicorn.conf.py > /etc/ihatemoney/gunicorn.conf.py
-3. Create supervisor config file ::
+3a. Create supervisor config file ::
ihatemoney generate-config supervisord.conf > /etc/supervisor/conf.d/ihatemoney.conf
+3b. To use systemd services, symlink ``ihatemoney.service`` to [#systemd-services]_::
+
+ ln -s /var/lib/ihatemoney/conf/ihatemoney.service /lib/systemd/system/ihatemoney.service
+
4. Copy (and adapt) output of ``ihatemoney generate-config nginx.conf`` with your nginx vhosts [#nginx-vhosts]_
5. Reload both nginx and supervisord. It should be working ;)
.. [#nginx-vhosts] typically, */etc/nginx/conf.d/* or
*/etc/nginx/sites-available*, depending on your distribution.
+.. [#systemd-services] ``/lib/systemd/system/ihatemoney.service`` path may change depending on your distribution.
+
With Docker
-----------