]> git.corax.cc Git - toolbox/commit
include/inst: Add functions for implementing singleton daemons
authorMatthias Kruk <m@m10k.eu>
Sun, 13 Jun 2021 08:12:48 +0000 (17:12 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 13 Jun 2021 08:12:48 +0000 (17:12 +0900)
commitf946a8bdffcbca6ee5a4bf657603a0e6334e4e33
tree779b37260e3ddbf05dfff6358e1971695120197c
parent28b30415bec97195c214f71eed137adbc49846e8
include/inst: Add functions for implementing singleton daemons

The inst_start() function does not check if a process is already
running, making it unusable for the implementation of singleton
daemons.
This commit adds the inst_singleton() function, which allows the
caller to implement daemons which can only be run one at a time.
include/inst.sh