Writing a daemon using FreeBSD and Python pt.3

Part 1 of this series covered Python fundamentals, signal handling and logging. We wrote an init script as well as a program that can be daemonized by daemon(8). In the previous part we modified the program as well as the init script so that it can daemonize itself using the Python daemon module. I also … Continue reading Writing a daemon using FreeBSD and Python pt.3

Writing a daemon using FreeBSD and Python pt.2

The previous part of this series left off with a running "baby daemon" example. It covered Python fundamentals, signal handling, logging as well as an init script to start the daemon. Daemonization with Python The outcome of part 1 was a program that needed external help actually to be daemonized. I used FreeBSD's handy daemon(8) … Continue reading Writing a daemon using FreeBSD and Python pt.2

Writing a daemon using FreeBSD and Python pt.1

Being a sysadmin by profession, I don't code. At least not often enough or with as high quality output that programmers would accept to call coding. I do write and maintain shell scripts. I also write new formulas for configuration management with SaltStack. The latter is Python-based and after hearing mostly good things about that … Continue reading Writing a daemon using FreeBSD and Python pt.1