mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-29 04:10:01 -05:00
cli 0.1.9 try fix to periphery start systemd
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1472,7 +1472,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "monitor_cli"
|
||||
version = "0.1.8"
|
||||
version = "0.1.9"
|
||||
dependencies = [
|
||||
"async_timing_util",
|
||||
"clap",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "monitor_cli"
|
||||
version = "0.1.8"
|
||||
version = "0.1.9"
|
||||
edition = "2021"
|
||||
authors = ["MoghTech"]
|
||||
description = "monitor cli | tools to setup monitor system"
|
||||
|
||||
@@ -548,13 +548,9 @@ fn periphery_unit_file(config_path: &str) -> String {
|
||||
let user = env::var("USER").expect("failed to find $USER env var");
|
||||
format!("[Unit]
|
||||
Description=agent to connect with monitor core
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User={user}
|
||||
WorkingDirectory={home}
|
||||
ExecStart=/bin/bash --login -c 'source {home}/.bashrc; $HOME/.cargo/bin/periphery --config-path {config_path} --home-dir $HOME'
|
||||
ExecStart={home}/.cargo/bin/periphery --config-path {config_path} --home-dir {home}
|
||||
TimeoutStartSec=0
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user