TrustTunnel/scripts/trusttunnel.service.template
Andrey Yakushin f57cb2a05f Pull request 130: Post release fixes
Squashed commit of the following:

commit 3e041c827c1836885edb98710631cd9339af4bc7
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Jan 21 17:08:26 2026 +0400

    sudo for setup_wizard

commit 7aa7f01466bb1e8374e5763b98d1faf69a705fbe
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Jan 21 16:55:57 2026 +0400

    More detailed parse cert error

commit ac98633f2ef50fef14ef17886ab2ebe029681f4f
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Jan 21 15:52:16 2026 +0400

    sudo for systemd commands

commit 972ea7cf6bdb8e5466478aea806059246b8c9db3
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Jan 21 15:31:49 2026 +0400

    Improve post install message

commit c246319db68dedd87f66a5d0f47991ef6807a914
Author: Andrey Yakushin <a.yakushin@adguard.com>
Date:   Wed Jan 21 15:22:06 2026 +0400

    Fix after install help command
2026-01-21 13:18:11 +00:00

21 lines
567 B
Text

# Service template for the TrustTunnel endpoint
# Adjust paths at `ExecStart` and copy file to systemd system directory:
#
# sudo cp trusttunnel.service.template /etc/systemd/system/trusttunnel.service
# sudo systemctl daemon-reload
# sudo systemctl enable --now trusttunnel
[Unit]
Description=TrustTunnel endpoint
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
WorkingDirectory=/opt/trusttunnel
ExecStart=/opt/trusttunnel/trusttunnel_endpoint vpn.toml hosts.toml
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target