From 32ef5126ca77b02d730dfdbeff206ef26c44e016 Mon Sep 17 00:00:00 2001 From: Thiago Sueto Date: Tue, 7 Jul 2020 13:39:58 -0300 Subject: [PATCH 1/2] 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. --- etc/dsnet.service | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/dsnet.service b/etc/dsnet.service index 52adfd9..ea92b41 100644 --- a/etc/dsnet.service +++ b/etc/dsnet.service @@ -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 From 557d07a4b3edba4a8974ddf0acbc6a062678a32b Mon Sep 17 00:00:00 2001 From: Thiago Sueto Date: Tue, 7 Jul 2020 13:59:29 -0300 Subject: [PATCH 2/2] Update etc/dsnet.service --- etc/dsnet.service | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/dsnet.service b/etc/dsnet.service index ea92b41..6f9b3cf 100644 --- a/etc/dsnet.service +++ b/etc/dsnet.service @@ -10,6 +10,7 @@ Type=oneshot ExecStart=/usr/local/bin/dsnet up ExecStop=/usr/local/bin/dsnet down RemainAfterExit=yes +ExecReload=/usr/local/bin/dsnet sync [Install] WantedBy=default.target