Tests and documentation for systemd integration

Some tests and documentation for the systemd notification feature.
Also fixes some corner case issues detected while writing the tests.
This commit is contained in:
vieira
2016-10-27 23:37:48 +00:00
committed by Brian May
parent 08fb3be7a0
commit 6d5d0d766f
3 changed files with 90 additions and 5 deletions

View File

@ -49,6 +49,8 @@ Supports:
* IPv4 TCP
* IPv4 DNS
* IPv6 TCP
* IPv6 DNS
Requires:
@ -72,3 +74,19 @@ Additional Suggested Software
- You may want to use autossh, available in various package management
systems
- If you are using systemd, sshuttle can notify it when the connection to
the remote end is established and the firewall rules are installed
.. code-block:: ini
:emphasize-lines: 6
[Unit]
Description=sshuttle
After=network.target
[Service]
Type=notify
ExecStart=/usr/bin/sshuttle --dns --remote <user>@<server> <subnets...>
[Install]
WantedBy=multi-user.target