Add service and socket for protonmail-bridge
This commit is contained in:
parent
2fddf2f05b
commit
c8c46767e9
17
config/systemd/user/protonmail-bridge.service
Normal file
17
config/systemd/user/protonmail-bridge.service
Normal 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
|
10
config/systemd/user/protonmail-bridge.socket
Normal file
10
config/systemd/user/protonmail-bridge.socket
Normal 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
|
Loading…
Reference in New Issue
Block a user