dsnet/etc/dsnet.service
Thiago Sueto 32ef5126ca
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.
2020-07-07 13:39:58 -03:00

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