enable at boot instructions

This commit is contained in:
Callan Bryant 2020-05-23 09:19:02 +01:00
parent 245966e2ad
commit 26aa8a99b5
No known key found for this signature in database
GPG Key ID: C31FA9DF3ACBFFAA
2 changed files with 24 additions and 0 deletions

View File

@ -279,3 +279,14 @@ of what I'm doing.
Allowing generation of the pub/priv keypair on the client is not yet supported, Allowing generation of the pub/priv keypair on the client is not yet supported,
but will be soon as provision exists within the code base. Note that whilst but will be soon as provision exists within the code base. Note that whilst
client peer private keys are generated on the server, they are never stored. client peer private keys are generated on the server, they are never stored.
> How do I get dsnet to bring the (server) interface up on startup?
Assuming you're running a systemd powered linux distribution (most of them are):
1. Copy
[etc/dsnet.service](https://github.com/naggie/dsnet/blob/master/etc/dsnet.service)
to `/etc/systemd/system/`
2. Run `sudo systemctl daemon-reload` to get systemd to see it
3. Then run `sudo systemctl enable dsnet` to enable it at boot

13
etc/dsnet.service Normal file
View File

@ -0,0 +1,13 @@
# Copy this service file to /etc/systemd/system/ to start dsnet on boot,
# assuming dsnet is installed to /usr/local/bin
[Unit]
Description=dsnet
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/dsnet up
[Install]
WantedBy=default.target