diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..e037a04 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,8 @@ +#!/bin/sh +cargo build --release +install -Dm755 target/release/daemon /usr/local/bin/lact-daemon +install -Dm755 target/release/cli /usr/local/bin/lact-cli +install -Dm755 target/release/gui /usr/local/bin/lact-gui +install -Dm644 lact.service /etc/systemd/system/lact.service +systemctl daemon-reload +systemctl restart lact \ No newline at end of file diff --git a/lact.service b/lact.service new file mode 100644 index 0000000..e587918 --- /dev/null +++ b/lact.service @@ -0,0 +1,8 @@ +[Unit] +Description=AMDGPU Control Daemon + +[Service] +ExecStart=/usr/local/bin/lact-daemon + +[Install] +WantedBy=multi-user.target \ No newline at end of file