Skip to content

Commit

Permalink
documenting systemd installation for redhat/rpm systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersilva committed Dec 18, 2023
1 parent e7e3a8a commit cf77a03
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/source/Tutorials/Install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Optional ones::

$ sudo dnf install python3-setuptools # needed to build rpm package.

If packages are not available, the one can substitute by using python install package (pip)
If packages are not available, the one can substitute by using python install package (pip/pip3)

Once the dependencies are in place, one can build an RPM file using ``setuptools``::

Expand All @@ -197,6 +197,18 @@ Once the dependencies are in place, one can build an RPM file using ``setuptools
This procedure installs only the python application (not the C one.)
No man pages nor other documentation is installed either.

The RPM file does not include systemd integration, which must currently be taken
care of manually::

groupadd sarra
useradd -g sarra sarra
wget https://github.com/MetPX/sarracenia/blob/development/debian/metpx-sr3.service
cp metpx-sr3.service /lib/systemd/system
cp metpx-sr3.service /etc/systemd/system

After this it can be enabled as per any other systemd unit.

(yes this is sad, more information here: https://github.com/MetPX/sarracenia/issues/863 )

PIP
~~~
Expand Down
15 changes: 15 additions & 0 deletions docs/source/fr/Tutoriel/Installer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,21 @@ Une fois les dépendances en place, on peut construire un fichier RPM en utilisa
Cette procédure installe uniquement l’application python (pas celle en C).
Aucune page de manuel ni aucune autre documentation n’est installée non plus.

The paquet RPM n'inclut pas non plus l'intégration avec Systemd (pour rouler sarra
comme une service.) Il faut faire cette installation manuellement::

groupadd sarra
useradd -g sarra sarra
wget https://github.com/MetPX/sarracenia/blob/development/debian/metpx-sr3.service
cp metpx-sr3.service /lib/systemd/system
cp metpx-sr3.service /etc/systemd/system

Après cette intervention, on peut utiliser les commandes de SystemD normalement.


(Oui, on est d´accord que ceci est triste, plus d´informations: https://github.com/MetPX/sarracenia/issues/863 )


PIP
~~~

Expand Down

0 comments on commit cf77a03

Please sign in to comment.