Skip to content

Commit

Permalink
install systemd unit files for deb
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Dec 4, 2023
1 parent ffbb310 commit 4a35ee1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ strip = "symbols"
[package.metadata.deb]
copyright = "2023 Spencer Woo"
maintainer-scripts = "debian/"
systemd-units = { enable = true, start = false }
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

- Download the latest `.deb` package from [Releases](https://github.com/spencerwooo/bitsrun-rs/releases/latest).
- `sudo apt install ./<path/to/file>.deb`
- Start `bitsrun@.service` if desired: `sudo systemctl start bitsrun`
- Start `bitsrun.service` if desired: edit `/lib/systemd/system/bitsrun.service` to specify absolute config path, then `sudo systemctl start bitsrun`

#### Cargo

Expand Down
11 changes: 11 additions & 0 deletions debian/bitsrun.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=bitsrun - A headless login and logout CLI for 10.0.0.55 at BIT
After=network.target

[Service]
Type=simple
Restart=on-abort
ExecStart=/usr/bin/bitsrun keep-alive --config /path/to/bit-user.json

[Install]
WantedBy=multi-user.target
12 changes: 0 additions & 12 deletions debian/[email protected]

This file was deleted.

0 comments on commit 4a35ee1

Please sign in to comment.