tails-wait-until-tor-has-bootstrapped.service 610 Bytes
Newer Older
1
[Unit]
segfault's avatar
segfault committed
2
Description=Wait for Tor to Have Bootstrapped
3
Documentation=https://tails.boum.org/contribute/design/
4
After=tor@default.service
5
BindsTo=tor@default.service
6 7 8

[Service]
Type=oneshot
9
RemainAfterExit=yes
10
User=debian-tor
intrigeri's avatar
intrigeri committed
11 12 13
ExecStart=/bin/sh -c '. /usr/local/lib/tails-shell-library/tor.sh ; \
                      while ! tor_is_working ; do                   \
                         /bin/sleep 1                             ; \
14 15
                      done'
TimeoutStartSec=0
16 17 18 19 20
CapabilityBoundingSet=
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=full
21 22

[Install]
23
WantedBy=tor@default.service