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>
This commit is contained in:
nailyk-fr 2019-05-16 21:23:00 +02:00 committed by Alexis Metaireau
parent abfaa9647c
commit bb5a1cfe84

View file

@ -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) 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 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:: 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 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 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]_ 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 ;) 5. Reload both nginx and supervisord. It should be working ;)
.. [#nginx-vhosts] typically, */etc/nginx/conf.d/* or .. [#nginx-vhosts] typically, */etc/nginx/conf.d/* or
*/etc/nginx/sites-available*, depending on your distribution. */etc/nginx/sites-available*, depending on your distribution.
.. [#systemd-services] ``/lib/systemd/system/ihatemoney.service`` path may change depending on your distribution.
With Docker With Docker
----------- -----------