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:
parent
67a1720c37
commit
32ef5126ca
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user