Skip to content

Commit ea3c7a0

Browse files
committed
Add systemd service unit for generation-daemon
1 parent 3021be0 commit ea3c7a0

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ Note: Metal support is provided by candle but has not been tested with this proj
132132
cargo build --release --bin generation-daemon --features cuda,audio-ogg
133133
```
134134

135+
A systemd user service unit is included in [`ace-step-gen.service`](ace-step-gen.service). Install with:
136+
137+
```bash
138+
cp ace-step-gen.service ~/.config/systemd/user/
139+
systemctl --user daemon-reload
140+
systemctl --user enable --now ace-step-gen
141+
```
142+
135143
## Features
136144

137145
| Feature | Default | Description |

ace-step-gen.service

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[Unit]
2+
Description=ACE-Step generation daemon (resident pipeline, Unix socket)
3+
After=local-fs.target
4+
5+
[Service]
6+
Type=simple
7+
Environment=LIBRARY_PATH=/usr/lib64:/usr/lib
8+
Environment=PATH=/usr/local/cuda-12.4/bin:/usr/local/bin:/usr/bin:/bin
9+
Environment=CUDA_HOME=/usr/local/cuda-12.4
10+
Environment=RUST_LOG=info
11+
# Adjust the path to your built binary
12+
ExecStart=%h/Projects/ace-step-rs/target/release/generation-daemon --socket /tmp/ace-step-gen.sock
13+
Restart=on-failure
14+
RestartSec=10
15+
16+
[Install]
17+
WantedBy=default.target

0 commit comments

Comments
 (0)