Add services

This commit is contained in:
jude 2023-03-23 13:32:29 +00:00
parent 31ee6b4540
commit f7b0150688
4 changed files with 29 additions and 1 deletions

View File

@ -1,5 +1,7 @@
[package] [package]
name = "soundfx-rs" name = "soundfx-rs"
description = "Discord bot for custom sound effects and soundboards"
license = "AGPL-3.0-only"
version = "1.5.7" version = "1.5.7"
authors = ["jellywx <judesouthworth@pm.me>"] authors = ["jellywx <judesouthworth@pm.me>"]
edition = "2018" edition = "2018"
@ -22,4 +24,14 @@ serde = "1.0"
serenity = { version = "0.11.5" } serenity = { version = "0.11.5" }
[package.metadata.deb] [package.metadata.deb]
depends = ["$auto", "ffmpeg", "libopus-dev"] depends = "$auto, ffmpeg"
suggests = "mysql-server-8.0"
maintainer-scripts = "debian"
assets = [
["target/release/soundfx-rs", "usr/bin/soundfx-rs", "755"],
["conf/default", "etc/soundfx-rs/default", "600"]
]
[package.metadata.deb.systemd-units]
unit-scripts = "systemd"
start = false

0
conf/default Normal file
View File

2
debian/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -0,0 +1,14 @@
[Unit]
Description=Discord bot for custom sound effects and soundboards
[Service]
Type=simple
ExecStart=/usr/bin/soundfx-rs
WorkingDirectory=/etc/soundfx-rs
Restart=always
RestartSec=4
# Environment="RUST_LOG=warn,soundfx_rs=info"
# Environment="RUST_BACKTRACE=full"
[Install]
WantedBy=multi-user.target