2020-05-23 10:19:02 +02:00
|
|
|
# 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
|
2020-07-07 18:39:58 +02:00
|
|
|
ExecStop=/usr/local/bin/dsnet down
|
|
|
|
RemainAfterExit=yes
|
2020-07-07 18:59:29 +02:00
|
|
|
ExecReload=/usr/local/bin/dsnet sync
|
2020-05-23 10:19:02 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=default.target
|