
Service Monitor
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Distribution-independent utility for monitoring/toggling background services (daemons).
Features: show current status of services; start/stop with a single click; placeable on desktop or in dock;
maximum flexibility through shell commands
Installation: plasmapkg -i service-monitor.zip
Submit bugs and feature requests on GitHub: https://github.com/mbleichner/service-monitor/issues
You are welcome to contribute to development, feel free to create a fork on GitHub!
New Features in v2.0:
- Password input dialog now included (no more dependency on external tools like kdesudo)
- Easier management of service definition files (incl. one-click update)
- Hide unavailable services
- Environment variables aren't needed any more ($INITDIR will be guessed, $SUDO has become superfluous)
- Ability to copy existing services as custom services
- Sudo configuration helper (creates snippets for inclusion in /etc/sudoers)
- Three different indicator icon themes
- Option to suppress stdout of start/stop commands
- Report external state changes through KNotify
- Service icons can be placed directly in the panel (without popup)
Freol
9 years ago
plasmapkg -i service-monitor.zip
To remove:
To install package:
plasmapkg -r service-monitor
PS Any build in services didn't work.
Report
janet
9 years ago
$ plasmapkg -i service-monitor-latest.zip
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\â"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgYU0IYy/metadata.desktop, line 3: " "Invalid escape sequence "\ç"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\â"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 1: " "Invalid escape sequence "\"."
"KConfigIni: In file /tmp/kde-me/plasmapkgDkwCGK/metadata.desktop, line 3: " "Invalid escape sequence "\ç"."
plasmapkg(5272)/libplasma Plasma::Package::installPackage: Package plugin name not specified
Installation fehlgeschlagen: /home/me/Desktop/service-monitor-latest.zip
Report
Freol
9 years ago
unzip service-monitor-latest.zip
plasmapkg -i service-monitor-latest
More info here: https://bbs.archlinux.org/viewtopic.php?id=104060
Report
janet
9 years ago
It does work fine on aptosid, but on my Kubuntu Lucid desktop the services widget is only displayed with the widget's icon. What might be wrong there?
Report
mbleichner
9 years ago
Report
janet
9 years ago
$ plasmoidviewer service-monitor
QInotifyFileSystemWatcherEngine::addPaths: inotify_add_watch failed: No such file or directory
QFileSystemWatcher: failed to add paths: /home/me/.config/ibus/bus
Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
plasmoidviewer(2935)/kdecore (services) KServiceFactory::findServiceByDesktopPath: "" not found
looking for XML source files and trying to load them...
successfully parsed daemons-common.xml (16 services).
successfully parsed tools-settings.xml (5 services).
successfully parsed less-common.xml (4 services).
successfully parsed custom.xml (1 services).
What's ibus?
Report
janet
9 years ago
Report
mbleichner
9 years ago
Go to ~/.kde/share/apps/plasma/plasmoids/service-monitor/contents/code and open ServiceMonitor.py
Line 40 should read like this:
self.setupAppletUi() if self.formFactor() == Plasma.Planar else self.setupPopupUi()
Change it to:
self.setupAppletUi()
You cannot place the plasmoid into dock anymore, but at least it should display correctly on desktop.
Report
janet
9 years ago
When I do the same in aptosid = drag the widget to the desktop, I instantly get the list window. Empty until I configure it, filled after configuration. I never have seen the icon on the desktop in aptosid. Both systems use the plasma desktop, not the folderview.
Report
mbleichner
9 years ago
Probably unrelated to your problem.
I was hoping to see any error messages from my plasmoid, but everything seems to be fine.
About your problem: do you place the plasmoid in the dock or on desktop? And can you describe your problem a little more detailed?
Report
mbleichner
9 years ago
Report
Freol
9 years ago
Report
mbleichner
9 years ago
Report
Freol
9 years ago
PS in kubuntu there is no /etc/init.d/mysqld. There is /usr/sbin/mysqld. (in Debian there is first one...)
Report
rdonato
8 years ago
Report
mbleichner
9 years ago
If you have set up mysql as working custom service, would you please upload it so I can include it? (use the "share with others" button) That would be very helpful :)
Report
mbleichner
9 years ago
~/.kde/share/apps/plasma/plasmoids/service-monitor/contents/sources
There you find the service definiton files. They contain the shell commands to be executed. Try them on the console to find out which doesn't work correctly.
Report
mbleichner
9 years ago
I just noticed: kdesudo is not installed by standard anymore, so that's what may be missing. It is called to temporarily give the user root rights.
Make sure it is installed and configure the /etc/suduers file, i.e. add a line
<user> ALL=(ALL) ALL
to allow <user> to run every root command with his own user password.
Report
Freol
9 years ago
Report
mbleichner
9 years ago
You can try to make these daemons work as custom services and submit them to me via the "share" button.
Report
Freol
9 years ago
I'll try to make these daemons work as custom services.
Report
Freol
9 years ago
Report