diff --git a/tfclient/Cargo.toml b/tfclient/Cargo.toml index aeb67c6..41c66ad 100644 --- a/tfclient/Cargo.toml +++ b/tfclient/Cargo.toml @@ -41,3 +41,10 @@ tar = "0.4.38" hex = "0.4.3" tempfile = "3.4.0" sha2 = "0.10.6" + +[package.metadata.deb] +maintainer = "c0repwn3r " +copyright = "e3team " +license-file = "LICENSE.txt" +maintainer-scripts = "debian/" +systemd-units = { enable = false, unit-name = "tfclient@" } \ No newline at end of file diff --git a/tfclient/debian/service b/tfclient/debian/service new file mode 100644 index 0000000..0a8d933 --- /dev/null +++ b/tfclient/debian/service @@ -0,0 +1,12 @@ +[Unit] +Description=A client for Defined Networking compatible overlay networks (instance %i) +Wants=basic.target network-online.target +After=basic.target network.target network-online.target + +[Service] +SyslogIdentifier=tfclient-%i +ExecStart=/usr/bin/tfclient run --server https://api.defined.net --name %i +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file