Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added examples and installation information
  • Loading branch information
stdevel committed Dec 3, 2014
1 parent edc43b5 commit 454f515
Showing 1 changed file with 47 additions and 2 deletions.
49 changes: 47 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,65 @@ 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 (*services and processes having no init script*) using old files:
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** processes:
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
```

0 comments on commit 454f515

Please sign in to comment.