Skip to content

Commit 1258a97

Browse files
Add systemd unit
1 parent df24a4c commit 1258a97

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ section = "utility"
2929
priority = "optional"
3030
assets = [
3131
["target/release/doc-previewer", "usr/bin/", "755"],
32-
["config.toml", "etc/doc-previewer/", "644"],
32+
["config.toml", "etc/doc-previewer/config.toml", "644"],
3333
]
34+
maintainer-scripts = "systemd_units"
35+
systemd-units = { enable = true }

systemd_units/service

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[Unit]
2+
Description=GitHub Documentation Previewer Service
3+
4+
[Service]
5+
ExecStart=/usr/bin/doc-previewer
6+
StandardOutput=journal
7+
StandardError=journal
8+
9+
[Install]
10+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)