From 32ef5126ca77b02d730dfdbeff206ef26c44e016 Mon Sep 17 00:00:00 2001 From: Thiago Sueto Date: Tue, 7 Jul 2020 13:39:58 -0300 Subject: [PATCH] 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