32ef5126ca
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.
16 lines
350 B
Desktop File
16 lines
350 B
Desktop File
# 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
|
|
ExecStop=/usr/local/bin/dsnet down
|
|
RemainAfterExit=yes
|
|
|
|
[Install]
|
|
WantedBy=default.target
|