MCPcopy Create free account
hub / github.com/Autoparallel/learner / daemon_install_prompt

Function daemon_install_prompt

crates/learnerd/src/daemon/linux.rs:98–119  ·  view source on GitHub ↗

Displays post-installation instructions and helpful commands. Shows: - Service activation sequence - Debugging commands - Log access instructions - Important systemd paths

(daemon: &Daemon)

Source from the content-addressed store, hash-verified

96/// - Log access instructions
97/// - Important systemd paths
98pub fn daemon_install_prompt(daemon: &Daemon) {
99 println!("{} Daemon service installed", style(SUCCESS_PREFIX).green());
100
101 println!("\n{} To activate the service:", style("Next steps").blue());
102 println!(" 1. Reload: {}", style("sudo systemctl daemon-reload").yellow());
103 println!(" 2. Enable: {}", style("sudo systemctl enable learnerd").yellow());
104 println!(" 3. Start: {}", style("sudo systemctl start learnerd").yellow());
105 println!(" 4. Verify: {}", style("sudo systemctl status learnerd").yellow());
106
107 println!("\n{} Troubleshooting commands:", style("Debug").blue());
108 println!(" View logs: {}", style("sudo journalctl -u learnerd -f").yellow());
109 println!(
110 " Check paths: {}",
111 style("sudo systemctl show learnerd -p ExecStart,PIDFile,RuntimeDirectory").yellow()
112 );
113 println!(" Check status: {}", style("sudo systemctl status learnerd --no-pager -l").yellow());
114
115 println!("\n{} Service paths:", style("Configuration").blue());
116 println!(" Working dir: {}", style(daemon.working_dir.display()).yellow());
117 println!(" PID file: {}", style(daemon.pid_file.display()).yellow());
118 println!(" Log dir: {}", style(daemon.log_dir.display()).yellow());
119}

Callers 1

daemonFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected