Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 454f515

Browse files
committed
Update README.md
Added examples and installation information
1 parent edc43b5 commit 454f515

File tree

1 file changed

+47
-2
lines changed

1 file changed

+47
-2
lines changed

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,65 @@ Examples
1515
========
1616
System having no processes using old files:
1717
```
18+
# yum needs-restarting
19+
Loaded plugins: needs-restarting
20+
This system is receiving updates from RHN Classic or Red Hat Satellite.
21+
You blacklisted:
1822
23+
24+
No processes using old files, nice job.
1925
```
2026

2127
System running some services using old files:
2228
```
29+
# yum needs-restarting
30+
Loaded plugins: needs-restarting
31+
You blacklisted:
32+
33+
34+
You might want to restart the following processes:
35+
httpd
36+
sshd
2337
```
2438

25-
System running processes (*services and processes having no init script*) using old files:
39+
System running processes having no init script using old files:
2640
```
41+
# yum needs-restarting
42+
Loaded plugins: needs-restarting
43+
You blacklisted:
44+
45+
46+
You might want to restart the following processes:
47+
? (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)
48+
? (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)
49+
? (PID 28486, unicorn master -D -E production -c /var/opt/gitlab/gitlab-rails/etc/unicorn.rb /opt/gitlab/embedded/service/gitlab-rails/config.ru)
50+
? (PID 28650, nginx: worker process)
51+
? (PID 28649, nginx: worker process)
52+
? (PID 28648, nginx: master process /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx)
53+
? (PID 28584, sidekiq 2.17.0 gitlab-rails [0 of 25 busy])
2754
```
2855

29-
Example configuration blacklisting various **GitLab** processes:
56+
Example configuration blacklisting various **GitLab** and ``nginx`` processes:
3057
```
58+
$ cat /etc/yum/pluginconf.d/needs-restarting.conf
59+
[main]
60+
enabled=1
61+
excludeProcs=gitlab,nginx
3162
```
3263

3364
Installation
3465
============
66+
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:
67+
68+
```
69+
# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.py -o /usr/lib/yum-plugins/needs-restarting.py
70+
# curl https://raw.githubusercontent.com/stdevel/yum-plugin-needs-restarting/master/needs-restarting.conf -o /etc/yum/pluginconf.d/needs-restarting.conf
71+
# yum help needs-restarting
72+
Loaded Plugins: needs-restarting
73+
You blacklisted:
74+
75+
76+
needs-restarting
77+
78+
List processes that are using old files
79+
```

0 commit comments

Comments
 (0)