Skip to content
Snippets Groups Projects
Commit 68854b89 authored by Stephen D's avatar Stephen D
Browse files

deb packagign

parent 7b9fd244
No related branches found
No related tags found
1 merge request!1deb packagign
...@@ -2,8 +2,18 @@ ...@@ -2,8 +2,18 @@
name = "balloon_tx_monolith" name = "balloon_tx_monolith"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
license = "MIT"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.deb]
assets = [
["target/release/balloon_tx_monolith", "usr/bin/", "755"],
["debian/balloon_monolith.service", "/lib/systemd/system/balloon_monolith.service", "644"],
["config.toml.example", "/etc/balloon_tx/config.toml", "644"]
]
conf-files = ["/etc/balloon_tx/config.toml"]
maintainer-scripts = "debian/maintainer_scripts/"
copyright = "2023, Stephen D <@stephen:crabsin.space>"
maintainer = "Stephen D <@stephen:crabsin.space>"
[dependencies] [dependencies]
anyhow = "1.0.70" anyhow = "1.0.70"
......
[Unit]
Description=Balloon TX monolith
After=syslog.target network.target
[Service]
PIDFile=/run/balloon_monolith.pid
ExecStart=/usr/bin/balloon_tx_monolith
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
User=balloon
[Install]
WantedBy=multi-user.target
adduser --system --system balloon
usermod -G gpio -a balloon
usermod -G spi -a balloon
setcap 'cap_sys_nice=eip' /usr/bin/balloon_tx_monolith
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment