Compare commits

..

2 Commits

Author SHA1 Message Date
Dominik Chilla
0dc507a425
Merge pull request #45 from chillout2k/devel
systemd install typo
2022-08-24 21:52:14 +02:00
010e9eadfa systemd install typo 2022-08-24 21:51:31 +02:00
2 changed files with 107 additions and 99 deletions

View File

@ -82,7 +82,11 @@ Get logs of one of the pods:
```
## systemd <a name="systemd"/>
If you do not want to run the ExOTA-Milter in a containerized environment but directly as a systemd-unit/-service, first you´ll need to install all necessary python dependencies:
If you do not want to run the ExOTA-Milter in a containerized environment but directly as a systemd-unit/-service, first you´ll need to install all necessary python and build dependencies. Start with build deps (examples refere to ubuntu/debian):
```
sudo apt install --no-install-recommends gcc libpython3-dev libmilter-dev python3-pip
```
Now install all python dependencies:
```
~/src/ExOTA-Milter/INSTALL/systemd# sudo pip3 install -r ../../requirements.txt
Requirement already satisfied: authres==1.2.0 in /usr/local/lib/python3.8/dist-packages (from -r ../../requirements.txt (line 1)) (1.2.0)
@ -90,6 +94,10 @@ Requirement already satisfied: pymilter==1.0.4 in /usr/local/lib/python3.8/dist-
Requirement already satisfied: ldap3 in /usr/local/lib/python3.8/dist-packages (from -r ../../requirements.txt (line 3)) (2.9.1)
Requirement already satisfied: pyasn1>=0.4.6 in /usr/local/lib/python3.8/dist-packages (from ldap3->-r ../../requirements.txt (line 3)) (0.4.8)
```
At last uninstall all build dependencies, as they are not needed anymore:
```
apt purge gcc libpython3-dev libmilter-dev python3-pip
```
Next you should be able to install the ExOTA-Milter as well as the systemd-stuff by running the `install.sh` script:
```
~/src/ExOTA-Milter/INSTALL/systemd$ sudo ./install.sh

View File

@ -3,7 +3,7 @@ Description=ExOTA-Milter
[Service]
Restart=always
ExecStart=/usr/loca/sbin/exota-milter.sh
ExecStart=/usr/local/sbin/exota-milter.sh
[Install]
WantedBy=multi-user.target