Skip to content

Commit babb7c5

Browse files
committedDec 11, 2018
improvements to systemd (re)starting
1 parent 5d39849 commit babb7c5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎scripts/vault-unseal.systemd

+5-6
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,18 @@ After=network-online.target
77
[Service]
88
User=root
99
Group=root
10-
Restart=on-failure
1110
ExecStart=/usr/bin/vault-unseal --config /etc/vault-unseal.yaml
12-
13-
; Use graceful shutdown with a reasonable timeout
11+
Restart=always
12+
RestartSec=10
13+
StartLimitInterval=0
14+
TimeoutStopSec=10s
1415
KillMode=mixed
1516
KillSignal=SIGQUIT
16-
TimeoutStopSec=10s
1717

1818
PrivateDevices=true
19-
; Hide /home, /root, and /run/user.
2019
ProtectHome=true
21-
; Make /usr, /boot, /etc and possibly some more folders read-only.
2220
ProtectSystem=full
21+
PrivateTmp=true
2322

2423
[Install]
2524
WantedBy=multi-user.target

0 commit comments

Comments
 (0)