From 75d479b4e2a0400d62a43cd41746e6b501c5554d Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 30 Dec 2023 01:30:53 +0100 Subject: [PATCH 1/3] Add systemd service file --- Cargo.toml | 6 +++--- debian/aob-lemmy-bot.service | 13 +++++++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 527d98a..31b333c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,17 +1,17 @@ [package] authors = ["Neshura"] name = "aob-lemmy-bot" -version = "2.2.0-rc.1" +version = "2.2.0-rc.2" edition = "2021" description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" license = "GPL-3.0-or-later" [package.metadata.deb] extended-description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" -#maintainer-scripts = "debian/" currently disabled since the application is not runnable as a daemon +maintainer-scripts = "debian/" revision = "1" depends = ["libc6", "libssl3", "systemd"] -#systemd-units = { enable = false } +systemd-units = { enable = false } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/debian/aob-lemmy-bot.service b/debian/aob-lemmy-bot.service index e69de29..bc76f45 100644 --- a/debian/aob-lemmy-bot.service +++ b/debian/aob-lemmy-bot.service @@ -0,0 +1,13 @@ +[Unit] +Description="Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" +After=syslog.target +After=network-online.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/aob-lemmy-bot +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file -- 2.39.2 From d0375b1d8df75f5ccfe82a95765aa3f9fa3a12f2 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 30 Dec 2023 01:31:18 +0100 Subject: [PATCH 2/3] Release Candidate 2.2.0-rc.2 --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 25bdb32..abb3dbf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,7 +43,7 @@ dependencies = [ [[package]] name = "aob-lemmy-bot" -version = "2.2.0-rc.1" +version = "2.2.0-rc.2" dependencies = [ "chrono", "confy", -- 2.39.2 From 7a6ebd6381729c826a60abeb050661b6ce1c203d Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 30 Dec 2023 01:37:16 +0100 Subject: [PATCH 3/3] Release Candidate 2.2.0-rc.3 (Fix Debian binary location in systemd file) --- Cargo.lock | 2 +- Cargo.toml | 2 +- debian/aob-lemmy-bot.service | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index abb3dbf..289c284 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,7 +43,7 @@ dependencies = [ [[package]] name = "aob-lemmy-bot" -version = "2.2.0-rc.2" +version = "2.2.0-rc.3" dependencies = [ "chrono", "confy", diff --git a/Cargo.toml b/Cargo.toml index 31b333c..189c69c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Neshura"] name = "aob-lemmy-bot" -version = "2.2.0-rc.2" +version = "2.2.0-rc.3" edition = "2021" description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" license = "GPL-3.0-or-later" diff --git a/debian/aob-lemmy-bot.service b/debian/aob-lemmy-bot.service index bc76f45..0ac216e 100644 --- a/debian/aob-lemmy-bot.service +++ b/debian/aob-lemmy-bot.service @@ -5,7 +5,7 @@ After=network-online.target [Service] Type=simple -ExecStart=/usr/local/bin/aob-lemmy-bot +ExecStart=/usr/bin/aob-lemmy-bot Restart=always RestartSec=3 -- 2.39.2