Skip to content

Commit 587c422

Browse files
committed
fix: create service
1 parent 3f83549 commit 587c422

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

installer.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,13 @@ def run_ovnode() -> None:
234234
After=network.target
235235
236236
[Service]
237-
User=root
238-
WorkingDirectory=/opt/ov-node/
239-
ExecStart=/usr/local/bin/uv run main.py
237+
WorkingDirectory=/opt/ov-node
238+
ExecStart=/opt/ov-node_venv/bin/uv run main.py
240239
Restart=always
241240
RestartSec=5
242-
Environment="PATH=/usr/local/bin:/usr/bin:/bin"
241+
User=root
242+
Environment="PATH=/opt/ov-node_venv/bin"
243+
Environment="VIRTUAL_ENV=/opt/ov-node_venv"
243244
244245
[Install]
245246
WantedBy=multi-user.target

0 commit comments

Comments
 (0)