Systemd Unit File #16

Merged
Neshura merged 3 commits from systemd into main 2023-12-30 00:43:11 +00:00
2 changed files with 16 additions and 3 deletions
Showing only changes of commit 75d479b4e2 - Show all commits

View file

@ -1,17 +1,17 @@
[package] [package]
authors = ["Neshura"] authors = ["Neshura"]
name = "aob-lemmy-bot" name = "aob-lemmy-bot"
version = "2.2.0-rc.1" version = "2.2.0-rc.2"
edition = "2021" edition = "2021"
description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
[package.metadata.deb] [package.metadata.deb]
extended-description = "Bot for automatically posting new chapters of 'Ascendance of a Bookworm' released by J-Novel Club" 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" revision = "1"
depends = ["libc6", "libssl3", "systemd"] 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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -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