♻️ refactor(systemd): protonmail-bridge service

This commit is contained in:
Sergio Laín 2024-06-11 11:47:01 +02:00
parent 9cf79d54b9
commit f4d6e5e0b1
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B

View file

@ -1,12 +1,26 @@
[Unit] [Unit]
Description=Protonmail client bridge service Description=ProtonMail Bridge - ProtonMail IMAP and SMTP Bridge
PartOf=graphical-session.target After=network.target
After=graphical-session.target
[Service] [Service]
Type=exec Type=simple
StandardOutput=journal ExecStart=/usr/bin/protonmail-bridge-core --noninteractive
ExecStart=/usr/bin/protonmail-bridge --no-window Restart=always
KillMode=process
# Hardening
PrivateTmp=true
# ProtectHome=true
ProtectSystem=full
NoNewPrivileges=true
ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
PrivateDevices=true
# RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
SystemCallArchitectures=native
[Install] [Install]
WantedBy=graphical-session.target WantedBy=default.target