You are not logged in.
Pages: 1
Hi.
I've made a python script, mainly as a learning experience and for my own convenience. I'm releasing it to the AL community, hoping that others can benefit from it as well as hoping that I would get some sort of feedback on it.
I've named it Arch Linux Daemon Control (aldc). If anyone has any objections on this, please let me know and I'll change it.
So far, aldc has following features. It can list all, stopped or running daemons. Start, stop, restart one or more daemons and provide the status of one or more daemons. Command line syntax is "aldc command parameter", where command is either list, start, stop, restart or status and parameter, in the case of command being list, is either all, stopped or running. In the cases of command being either start, stop, restart and status, parameter is a daemon or a seies of daemons provided as string of daemons separated by commas.
Examples:
aldc list running - will return all running daemons.
aldc stop crond,fam,dbus - will stop crond, fam and dbus daemons.
aldc status dbus,network - will return the status of dbus and network daemons.
Source and pkg are available at
Thank you
I made it long
as I lacked the time to make it short...
Offline
An idea to your project. Can you implement a search on running daemons, which have been upgraded by pacman after daemon was started?
Offline
Can you implement a search on running daemons, which have been upgraded by pacman after daemon was started?
Correct me if I am wrong. As I see it, this would require one of following:
- pacman to somehow tag the daemon as being upgraded, which, IIRC, it currently does not.
- aldc to keep a database of the installed daemons for comparison.
- aldc to mingle with pacman/libalpm, which I have no intentions of.
I cannot really see the benefits of such a feature, enlighten me, please.
Regards.
I made it long
as I lacked the time to make it short...
Offline
Just to know which daemons should be restarted, because they have been upgraded or a dependency of the daemon has been upgraded. Sometimes you just forget to restart upgraded daemons, at least I do.
Compare running daemons to pacman.log?
Maybe take advantage of pacman -Qo (who owns the /etc/rc.d/daemon or the executable in the daemon file).
Check dependencies of the package that includes that daemon file or the daemon executable.
Compare daemon start time (/var/run) to pacgage upgrade time in pacman.log.
Offline
Thanks for this
Offline
Why use python for this? It seems like a lot of overkill, especially since there are already one or two implementations in bash.
[git] | [AURpkgs] | [arch-games]
Offline
@Daenyth:
he said it was mainly an exercise in python and additionally he gives it to us because he is nice
@OP
sounds cool, will try it
cheers Barde
Offline
Ah, I missed that. Thanks for the addition in any case
[git] | [AURpkgs] | [arch-games]
Offline
Pages: 1