#1 Le 12/10/2019, à 08:50
- katian
[RESOLU] désactiver postfix (systemd)
Bonjour et bon week-end !
Je désire désactiver postfix, sur un ubuntu server 18.04 alors j'ai saisi les commandes :
sudo systemctl stop postfix.service
sudo systemctl disable postfix.service
cela me semble suffisant mais est-ce que j'ai bien procédé ?
Dernière modification par katian (Le 12/10/2019, à 09:24)
Hors ligne
#2 Le 12/10/2019, à 09:23
- lykhead
Re : [RESOLU] désactiver postfix (systemd)
bonjour et bon week-end également
la procédure est la bonne
il n'y a jamais de bon ou de mauvais choix, uniquement des directions qui diffèrent.
Fedora 35
MSI A320M pro / A10-9700 AMD APU w/ Radeon R7 3,8 GHz / 8Ghz
SSD 120Go / HDD 4To
Hors ligne
#3 Le 12/10/2019, à 11:40
- kamaris
Re : [RESOLU] désactiver postfix (systemd)
Si tu veux vraiment empêcher toute activation du service (manuelle ou re-enable), tu peux aller plus loin avec
sudo systemctl mask postfix.service
mask UNIT...
Mask one or more units, as specified on the command line. This will link these unit files to /dev/null, making it impossible to start them. This is a stronger version of disable, since it prohibits all kinds of activation of the unit, including enablement and manual activation. Use this option with care. This honors the --runtime option to only mask temporarily until the next reboot of the system. The --now option may be used to ensure that the units are also stopped. This command expects valid unit names only, it does not accept unit file paths.
Hors ligne