-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from FrostyX/develop
Version 0.3
- Loading branch information
Showing
35 changed files
with
1,388 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# tracer | ||
|
||
Tracer finds outdated running packages in your system | ||
Tracer finds outdated running applications in your system | ||
|
||
How does he do it? He simply finds all packages you have modified since you boot up. Then he traces their files in the jungle of your memory, ... senses them, and finally, finds them. In the end you will get list of packages what have been running while you updated or removed them. | ||
|
||
## Requirements | ||
- Supported linux distribution - There are currently supported [Fedora](http://fedoraproject.org/) and [Gentoo](http://www.gentoo.org/) | ||
- Python interpreter | ||
- Python [psutil](https://code.google.com/p/psutil/) module. Available [here](https://admin.fedoraproject.org/pkgdb/acls/name/python-psutil) and [here](https://packages.gentoo.org/package/dev-python/psutil). Please use testing version on gentoo. | ||
- Python [beautifulsoup](http://www.crummy.com/software/BeautifulSoup/bs4/doc/) module. Available [here](https://admin.fedoraproject.org/pkgdb/acls/name/python-beautifulsoup4) and [here](https://packages.gentoo.org/package/dev-python/beautifulsoup) | ||
|
||
## Usage | ||
### Basics | ||
|
@@ -59,10 +60,18 @@ Tracer is called after every successful transaction. | |
vim-enhanced.i686 2:7.4.179-1.fc20 | ||
|
||
Calling tracer | ||
vim-X11 | ||
gvim | ||
|
||
Done! | ||
|
||
If you cant see tracer section in your output, make sure that you don't have `plugins=0` in your `/etc/dnf/dnf.conf`. | ||
|
||
|
||
## Feedback | ||
Please report any bugs or feature requests to [issues](https://github.com/FrostyX/tracer/issues) on this repository. Pull requests are also welcome. If you rather want a talk or something, you can find me on `#gentoo.cs` or `#fedora-cs` `@freenode` or you can [mail me](mailto:[email protected]). | ||
|
||
|
||
## References | ||
- <https://pythonhosted.org/psutil/> | ||
- <https://code.google.com/p/psutil/wiki/Documentation> | ||
- <https://docs.python.org/2/library/unittest.html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## rules.xml | ||
Rules in `rules.xml` are intended to find a proper processes. Rules defines path in processes tree from that one, which was affected by update through parents to the process, what user knows and what actually should be restarted. | ||
|
||
## applications.xml | ||
Definitions in `applications.xml` have nothing to do with searching. They are used just before application is printed to the output. They can set one of several types to the application (they can be printed differently) or define specific way, how to restart the application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<!-- | ||
- applications.xml | ||
- Defines the characteristics for specific applications | ||
- | ||
- Just before the application is printed, tracer looks into this file. | ||
- When some definition matches, tracer examines its type. Daemons can be | ||
- printed different way than regular applications. Also applications marked | ||
- as 'static' will not be printed, cause only way how to restart them is reboot. | ||
- | ||
- | ||
- Copyright (C) 2014 Jakub Kadlčík | ||
- | ||
- This copyrighted material is made available to anyone wishing to use, | ||
- modify, copy, or redistribute it subject to the terms and conditions of | ||
- the GNU General Public License v.2, or (at your option) any later version. | ||
- This program is distributed in the hope that it will be useful, but WITHOUT | ||
- ANY WARRANTY expressed or implied, including the implied warranties of | ||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
- Public License for more details. You should have received a copy of the | ||
- GNU General Public License along with this program; if not, write to the | ||
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
- 02110-1301, USA. | ||
- | ||
- | ||
- | ||
- Available types: | ||
- * daemon - Application is managed by init system | ||
- * static - Application is restartable only through rebooting the system | ||
- * session - Application is restartable only through restarting the session | ||
- (i.e. Log out & Log in again) | ||
- | ||
- Application syntax: | ||
- <app name="app_name1" type="daemon" /> | ||
- <app name="app_name2" helper="Run this command: app_name2 stop" /> | ||
- <app name="app_name3" rename="app_name_3" /> | ||
- | ||
- | ||
- Note that applications can be wrapped into group. In this case please set | ||
- attributes to the group and omit them from applications | ||
- | ||
- Group syntax | ||
- <group type="static"> | ||
- <app name="app_name1" /> | ||
- <app name="app_name2" /> | ||
- <app name="app_name3" /> | ||
- </group> | ||
- | ||
--> | ||
|
||
<applications> | ||
|
||
<!-- | ||
- Common applications | ||
--> | ||
|
||
<group type="daemon"> | ||
<app name="apache2" /> | ||
<app name="mpd" /> | ||
<app name="mysql" /> | ||
<app name="openvpn" /> | ||
<app name="samba" /> | ||
<app name="sshd" /> | ||
<app name="vixie-cron" /> | ||
<app name="wicd" /> | ||
</group> | ||
|
||
<group type="static"> | ||
<app name="polkitd" /> | ||
<app name="udisksd" /> | ||
<app name="gvfsd" /> | ||
<app name="gvfs-afc-volume-monitor" /> | ||
<app name="gvfsd-metadata" /> | ||
<app name="gvfs-udisks2-volume-monitor" /> | ||
<app name="at-spi-bus-launcher" /> | ||
<app name="gconfd-2" /> | ||
<app name="upowerd" /> | ||
</group> | ||
|
||
<group type="session"> | ||
<app name="dbus-launch" /> | ||
<app name="X" /> | ||
</group> | ||
|
||
|
||
<!-- | ||
- KDE applications | ||
--> | ||
|
||
<group helper="Run `kdeinit4` command"> | ||
<app name="kdeinit4" /> | ||
<app name="klauncher" /> | ||
</group> | ||
|
||
<group type="session"> | ||
<app name="kuiserver" /> | ||
<app name="kglobalaccel" /> | ||
<app name="kactivitymanagerd" /> | ||
<app name="kded4" /> | ||
<app name="knotify4" /> | ||
</group> | ||
|
||
</applications> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!-- | ||
- rules.xml | ||
- Rules definitions for traced applications | ||
- | ||
- When process is found, tracer looks into this file and searches for its parent rules. | ||
- If rule is found, action is performed. These two actions can be done: | ||
- * Print the actual process | ||
- * Find the rule for parent process | ||
- | ||
- | ||
- Copyright (C) 2014 Jakub Kadlčík | ||
- | ||
- This copyrighted material is made available to anyone wishing to use, | ||
- modify, copy, or redistribute it subject to the terms and conditions of | ||
- the GNU General Public License v.2, or (at your option) any later version. | ||
- This program is distributed in the hope that it will be useful, but WITHOUT | ||
- ANY WARRANTY expressed or implied, including the implied warranties of | ||
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General | ||
- Public License for more details. You should have received a copy of the | ||
- GNU General Public License along with this program; if not, write to the | ||
- Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
- 02110-1301, USA. | ||
- | ||
- | ||
- | ||
- Rule syntax: | ||
- <rule name="app_name" action="some_action" /> | ||
- | ||
- Default action: | ||
- 'call-parent' | ||
- | ||
- Available actions: | ||
- 'call-parent', 'print' | ||
- | ||
--> | ||
|
||
<rules> | ||
|
||
<!-- KDE --> | ||
<rule name="akonadiserver" /> | ||
|
||
<!-- Networking --> | ||
<rule name="wicd" /> | ||
|
||
<!-- Web browsers --> | ||
<rule name="chrome" /> | ||
<rule name="chrome-sandbox" /> | ||
|
||
</rules> | ||
|
||
<!-- | ||
- @TODO - Deal with these applications: | ||
- + Manages desktop: | ||
- * Thunar | ||
- * Nautilus | ||
- | ||
- + Test and add: | ||
- | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
Oops, something went wrong.