Skip to content

Commit

Permalink
Stop tailscale on application stop
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpianista committed Feb 9, 2024
1 parent 7fad7a3 commit 9cb1b03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions qml/pages/MainPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,17 @@ Page {
}
);
}

Component.onDestruction: {
systemd.typedCall('StopUnit',
[
{ 'type': 's', 'value': 'tailscaled.service' },
{ 'type': 's', 'value': 'fail' }
],
function(result) {},
function(error, message) {
console.log("failed (" + error + ") with:", message)
}
);
}
}

0 comments on commit 9cb1b03

Please sign in to comment.