mirror of
https://github.com/moghtech/komodo.git
synced 2026-08-21 08:01:15 +00:00
cli 0.1.13 periphery systemd needed to run 'loginctl enable-linger $USER'
This commit is contained in:
+3
-1
@@ -381,8 +381,10 @@ pub fn start_periphery_systemd(sub_matches: &ArgMatches) {
|
||||
|
||||
gen_periphery_service_file(&config_path);
|
||||
|
||||
let user = env::var("USER").expect("failed to find $USER env var");
|
||||
|
||||
let command =
|
||||
format!("systemctl --user daemon-reload && systemctl --user enable --now periphery");
|
||||
format!("systemctl --user daemon-reload && systemctl --user enable --now periphery && loginctl enable-linger {user}");
|
||||
|
||||
let output = run_command_pipe_to_terminal(&command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user