diff --git a/Cargo.toml b/Cargo.toml index 629600fea4b51b3946c75f5ebb8e263df33d2f98..ef475ec92a2af090ad32cf5c1dbd1fb225c09adf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,8 +2,18 @@ name = "org_flux" version = "0.1.0" 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] orgize = { git = "https://github.com/scd31/orgize/", branch = "no-more-default" } diff --git a/debian/org-flux.service b/debian/org-flux.service new file mode 100644 index 0000000000000000000000000000000000000000..683fc36d4c582ea580e126421b99619f04992d8d --- /dev/null +++ b/debian/org-flux.service @@ -0,0 +1,13 @@ +[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