Review system startup services, identify failed or deprecated services, and clean up boot jobs
Review and optimize system startup services by identifying failed, deprecated, and slow boot services. Provides specific commands to safely disable unnecessary services, fix broken ones, and improve boot performance.
/plugin marketplace add danielrosehill/linux-desktop-plugin/plugin install lan-manager@danielrosehillReview and clean up system startup services:
Run the following diagnostic commands:
Failed and Problematic Services:
systemctl --failed to list all failed servicessystemctl list-units --state=failed --all for detailed failed unitssystemctl list-units --state=error for services in error statesystemctl list-units --state=not-found for services with missing unit filesEnabled Services:
systemctl list-unit-files --state=enabled for all enabled servicessystemctl list-units --type=service --state=running for currently running servicessystemctl list-units --type=service --state=active for active servicesBoot-time Services:
systemd-analyze blame | head -n 30 for slowest boot servicessystemctl list-dependencies --before multi-user.target for services started before multi-usersystemctl list-dependencies --after multi-user.target for services started after multi-userService Details for Failed Services: For each failed service, run:
systemctl status [service-name] for current statusjournalctl -u [service-name] -n 50 for recent logssystemctl cat [service-name] to view unit fileMasked Services:
systemctl list-unit-files --state=masked for masked servicesDeprecated/Unnecessary Service Detection:
Analyze the output and provide:
Failed Services Report:
Recommendations for each failed service:
Remove: Service is deprecated or related to uninstalled software
sudo systemctl disable [service-name]sudo systemctl mask [service-name] if it keeps trying to startFix: Service is needed but has configuration issues
sudo systemctl restart [service-name]Investigate: Service failure needs deeper investigation
Boot Optimization Opportunities:
sudo systemctl disable [service-name]sudo systemctl mask [service-name]Enabled Services Review:
Safety Warnings:
Action Plan: Provide a prioritized list of actions:
For each action, provide the exact commands to execute.
Post-cleanup: After making changes, recommend:
sudo systemctl daemon-reload to reload systemd configurationsystemd-analyze to check boot time improvement