♻️ refactor(systemd): protonmail-bridge service
This commit is contained in:
parent
9cf79d54b9
commit
f4d6e5e0b1
1 changed files with 21 additions and 7 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue