{"id":19044477,"url":"https://github.com/stdevel/yum-plugin-needs-restarting","last_synced_at":"2025-04-17T18:35:12.139Z","repository":{"id":24104573,"uuid":"27492326","full_name":"stdevel/yum-plugin-needs-restarting","owner":"stdevel","description":"YUM plugin listing processes using old files","archived":false,"fork":false,"pushed_at":"2014-12-06T20:27:16.000Z","size":180,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-26T00:16:41.487Z","etag":null,"topics":["enterprise-linux","rpm","yum","yum-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stdevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-03T15:00:10.000Z","updated_at":"2021-12-10T17:18:38.000Z","dependencies_parsed_at":"2022-08-22T10:31:35.615Z","dependency_job_id":null,"html_url":"https://github.com/stdevel/yum-plugin-needs-restarting","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevel%2Fyum-plugin-needs-restarting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevel%2Fyum-plugin-needs-restarting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevel%2Fyum-plugin-needs-restarting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stdevel%2Fyum-plugin-needs-restarting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stdevel","download_url":"https://codeload.github.com/stdevel/yum-plugin-needs-restarting/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223764689,"owners_count":17198623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["enterprise-linux","rpm","yum","yum-plugin"],"created_at":"2024-11-08T22:46:25.920Z","updated_at":"2024-11-08T22:46:26.440Z","avatar_url":"https://github.com/stdevel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"yum-plugin-needs-restarting\n===========================\n\n**yum-plugin-needs-restarting** is a YUM plugin for listing processes using old files after upgrading your system.\nIt is based on the code of ``needs-restarting`` which is part of the ``yum-utils`` package.\n\nI decided to create a YUM plugin for this purpose because I really missed something like ``zypper ps`` (*openSUSE, SUSE Linux Enterprise Server/Desktop*) on Fedora and Enterprise Linux (*Red Hat Enterprise Linux, CentOS, ScientificLinux,...*)\n\nFeatures\n========\nThe plugin checks for processes which are part of installed RPM packages and use deleted files. It is also possible to blacklist particular processes by specifying wildcards.\nThe plugin implements a new YUM command: ``needs-restarting``.\n\nExamples\n========\nSystem having no processes using old files:\n```\n# yum needs-restarting\nLoaded plugins: needs-restarting\nThis system is receiving updates from RHN Classic or Red Hat Satellite.\nYou blacklisted:\n\n\nNo processes using old files, nice job.\n```\n\nSystem running some services using old files:\n```\n# yum needs-restarting\nLoaded plugins: needs-restarting\nYou blacklisted:\n\n\nYou might want to restart the following processes:\nhttpd\nsshd\n```\n\nSystem running processes having no init script using old files:\n```\n# yum needs-restarting\nLoaded plugins: needs-restarting\nYou blacklisted:\n\n\nYou might want to restart the following processes:\n? (PID 30799, unicorn worker[0] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru)\n? (PID 10053, unicorn worker[1] -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru)\n? (PID 28486, unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru)\n? (PID 28650, nginx: worker process)\n? (PID 28649, nginx: worker process)\n? (PID 28648, nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx)\n? (PID 28584, sidekiq 2.17.0 gitlab-rails [0 of 25 busy])\n```\n\nExample configuration blacklisting various **GitLab** and ``nginx`` processes:\n```\n$ cat /etc/yum/pluginconf.d/needs-restarting.conf\n[main]\nenabled=1\nexcludeProcs=gitlab,nginx\n```\n\nInstallation\n============\nA RPM package will follow soon. Currently you need to download the plugin and the plugin configuration and save it in the appropriate directory to make it work:\n\n```\n# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.py -o /usr/lib/yum-plugins/needs-restarting.py\n# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.conf -o /etc/yum/pluginconf.d/needs-restarting.conf\n# yum help needs-restarting\nLoaded Plugins: needs-restarting\nYou blacklisted:\n\n\nneeds-restarting\n\nList processes that are using old files\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevel%2Fyum-plugin-needs-restarting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstdevel%2Fyum-plugin-needs-restarting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstdevel%2Fyum-plugin-needs-restarting/lists"}