All Projects → stdevel → Yum Plugin Needs Restarting

stdevel / Yum Plugin Needs Restarting

Licence: gpl-2.0
YUM plugin listing processes using old files

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Yum Plugin Needs Restarting

obs-docu
Official Open Build Service Documentation. Content gets reviewed and edited. Generated books are available at http://www.openbuildservice.org
Stars: ✭ 26 (+188.89%)
Mutual labels:  rpm
Katello
Katello integrates open source systems management tools into a single solution for controlling the lifecycle of your machines.
Stars: ✭ 312 (+3366.67%)
Mutual labels:  rpm
Open Build Service
Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
Stars: ✭ 599 (+6555.56%)
Mutual labels:  rpm
rpm-builder
Maven RPM builder plugin
Stars: ✭ 46 (+411.11%)
Mutual labels:  rpm
Jenkins Bootstrap Shared
Jenkins as immutable infrastructure made easy. A repository of shared scripts meant to be used as a git submodule. Packing Jenkins, plugins, and scripts into immutable packages and images.
Stars: ✭ 270 (+2900%)
Mutual labels:  rpm
Docker Rpm Builder
Build native RPM packages for Centos/RHEL/Fedora from any Linux distro or even OSX, by leveraging docker capabilities.
Stars: ✭ 366 (+3966.67%)
Mutual labels:  rpm
vrms-rpm
Reports non-free software installed on an RPM-based GNU/Linux system.
Stars: ✭ 13 (+44.44%)
Mutual labels:  rpm
Dnf
Package manager based on libdnf and libsolv. Replaces YUM.
Stars: ✭ 838 (+9211.11%)
Mutual labels:  rpm
Javapackager
📦 Gradle/Maven plugin to package Java applications as native Windows, Mac OS X, or GNU/Linux executables and create installers for them.
Stars: ✭ 285 (+3066.67%)
Mutual labels:  rpm
Repo
Fedora 中文社区软件源
Stars: ✭ 516 (+5633.33%)
Mutual labels:  rpm
el7-bpf-specs
RPM specs for building bpf related tools on CentOS 7
Stars: ✭ 38 (+322.22%)
Mutual labels:  rpm
Displaylink Rpm
RPM sources for the DisplayLink USB display adapters
Stars: ✭ 266 (+2855.56%)
Mutual labels:  rpm
Erlang Rpm
Latest Erlang/OTP releases packaged as a zero dependency RPM, just enough for running RabbitMQ
Stars: ✭ 391 (+4244.44%)
Mutual labels:  rpm
elementary-nightly-rpms
nightly Pantheon DE + elementary applications packages for fedora (unofficial)
Stars: ✭ 34 (+277.78%)
Mutual labels:  rpm
Nginx Headers More Rpm
Nginx with headers-more-module rpm
Stars: ✭ 6 (-33.33%)
Mutual labels:  rpm
pulp rpm
RPM support for Pulp Platform
Stars: ✭ 32 (+255.56%)
Mutual labels:  rpm
App perf
Open source application performance monitoring tool with emphasis on ease of setup and use. Providing similar functionality like NewRelic/AppNeta/Skylight etc.
Stars: ✭ 353 (+3822.22%)
Mutual labels:  rpm
Atom Check Updates
A CLI for easily updating Atom to the latest version on RPM or Debian-based systems.
Stars: ✭ 8 (-11.11%)
Mutual labels:  rpm
Ngx mruby Package Builder
Package Builder of ngx_mruby with Docker
Stars: ✭ 25 (+177.78%)
Mutual labels:  rpm
Platform Install Packages
Official deployment packages to install the Kaltura platform on a server or cluster environments using native OS package managers
Stars: ✭ 436 (+4744.44%)
Mutual labels:  rpm

yum-plugin-needs-restarting

yum-plugin-needs-restarting is a YUM plugin for listing processes using old files after upgrading your system. It is based on the code of needs-restarting which is part of the yum-utils package.

I 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,...)

Features

The 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. The plugin implements a new YUM command: needs-restarting.

Examples

System having no processes using old files:

# yum needs-restarting
Loaded plugins: needs-restarting
This system is receiving updates from RHN Classic or Red Hat Satellite.
You blacklisted:


No processes using old files, nice job.

System running some services using old files:

# yum needs-restarting
Loaded plugins: needs-restarting
You blacklisted:


You might want to restart the following processes:
httpd
sshd

System running processes having no init script using old files:

# yum needs-restarting
Loaded plugins: needs-restarting
You blacklisted:


You might want to restart the following processes:
? (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)
? (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)
? (PID 28486, unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru)
? (PID 28650, nginx: worker process)
? (PID 28649, nginx: worker process)
? (PID 28648, nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx)
? (PID 28584, sidekiq 2.17.0 gitlab-rails [0 of 25 busy])

Example configuration blacklisting various GitLab and nginx processes:

$ cat /etc/yum/pluginconf.d/needs-restarting.conf
[main]
enabled=1
excludeProcs=gitlab,nginx

Installation

A 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:

# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.py -o /usr/lib/yum-plugins/needs-restarting.py
# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.conf -o /etc/yum/pluginconf.d/needs-restarting.conf
# yum help needs-restarting
Loaded Plugins: needs-restarting
You blacklisted:


needs-restarting

List processes that are using old files
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].