Add services
This commit is contained in:
parent
31ee6b4540
commit
f7b0150688
14
Cargo.toml
14
Cargo.toml
@ -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
0
conf/default
Normal file
2
debian/.gitignore
vendored
Normal file
2
debian/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
14
systemd/soundfx-rs.service
Normal file
14
systemd/soundfx-rs.service
Normal 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
|
Loading…
Reference in New Issue
Block a user