I want the system to execute a certain command (asynchronously) in these events:
* When KDM starts up
* Whenever the laptop lid is opened
* Whenever someone inputs an incorrect password
As you can probably guess, it's a security related thing (details for anyone interested). Currently on 10.04, but as soon as the stable repo gets updated I will be moving to 10.10. I have a pretty large amount of experience with Linux and am right at home in a terminal or the /etc directory.
How do I do this? Should I write a daemon which checks logs? Or are there callbacks I can configure someplace? TIA.
* When KDM starts up
* Whenever the laptop lid is opened
* Whenever someone inputs an incorrect password
As you can probably guess, it's a security related thing (details for anyone interested). Currently on 10.04, but as soon as the stable repo gets updated I will be moving to 10.10. I have a pretty large amount of experience with Linux and am right at home in a terminal or the /etc directory.
How do I do this? Should I write a daemon which checks logs? Or are there callbacks I can configure someplace? TIA.
Comment