Update dsnet.service

This commit makes the dsnet connection manageable by systemctl start/stop/restart.
Otherwise, systemctl stop does not bring the dsnet down and restart fails.
RemainAfterExit is added so that systemctl status reports Active.
I'm not sure whether dsnet sync could be used with ExecReload, so I did not include it.
This commit is contained in:
Thiago Sueto 2020-07-07 13:39:58 -03:00 committed by GitHub
parent 67a1720c37
commit 32ef5126ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@ Wants=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/local/bin/dsnet up
ExecStop=/usr/local/bin/dsnet down
RemainAfterExit=yes
[Install]
WantedBy=default.target