Add service and socket for protonmail-bridge

This commit is contained in:
Dan Buch 2019-05-08 09:31:15 -04:00
parent 2fddf2f05b
commit c8c46767e9
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=ProtonMail Bridge
After=protonmail-bridge.socket network-online.target
Wants=network-online.target
Requires=protonmail-bridge.socket
[Service]
Type=simple
WorkingDirectory=~
ExecStart=/usr/bin/protonmail-bridge --no-window --cli
Restart=always
RestartSec=5
StandardInput=socket
StandardOutput=socket
[Install]
WantedBy=default.target

View File

@ -0,0 +1,10 @@
[Unit]
Description=ProtonMail Bridge fifo
[Socket]
ListenFIFO=%t/protonmail-bridge.fifo
SocketMode=0660
[Install]
WantedBy=sockets.target
RequiredBy=protonmail-bridge.service