From 4d4d5ae751f0b58ec783ac1ef3846b239d93082b Mon Sep 17 00:00:00 2001 From: John Doe Date: Wed, 4 Mar 2026 21:15:57 -0500 Subject: [PATCH] fix: streamline LocalAGI service creation by removing unnecessary options and verification step --- install/localagi-install.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/install/localagi-install.sh b/install/localagi-install.sh index 2e6979df9..a00978713 100644 --- a/install/localagi-install.sh +++ b/install/localagi-install.sh @@ -68,31 +68,22 @@ cd /opt/localagi/webui/react-ui && msg_ok "Built LocalAGI from source" msg_info "Creating Service" -service_path="/etc/systemd/system/localagi.service" -cat <"$service_path" +cat </etc/systemd/system/localagi.service [Unit] Description=LocalAGI After=network.target + [Service] User=root -NoNewPrivileges=true -PrivateTmp=true -ProtectSystem=full -ProtectHome=true -AmbientCapabilities= -StandardOutput=journal -StandardError=journal Type=simple WorkingDirectory=/opt/localagi ExecStart=/usr/local/bin/localagi +Restart=on-failure + [Install] WantedBy=multi-user.target EOF -systemd-analyze verify localagi.service -msg_ok "Created Service" - -msg_info "Starting LocalAGI Service" systemctl enable -q --now localagi msg_ok "Started LocalAGI Service"