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

debian packaging/systemd

parent 60e42760
Loading
...@@ -2,8 +2,18 @@ ...@@ -2,8 +2,18 @@
name = "org_flux" name = "org_flux"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
description = "A Rust web server that consumes org files for content"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.deb]
maintainer = "Stephen D <webmaster@scd31.com>"
copyright = "2023, Stephen D <webmaster@scd31.com>"
depends = "systemd"
section = "web"
priority = "optional"
assets = [
["target/release/org_flux", "usr/bin/", "755"],
["debian/org-flux.service", "/lib/systemd/system/org-flux.service", "644"],
]
[dependencies] [dependencies]
orgize = { git = "https://github.com/scd31/orgize/", branch = "no-more-default" } orgize = { git = "https://github.com/scd31/orgize/", branch = "no-more-default" }
......
[Unit]
Description=Org Flux Daemon
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
PIDFile=/run/org_flux.pid
ExecStart=/usr/bin/org_flux
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
\ 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