htpdate: modify init scripts to use procd and uci configuration 4630/head
authorMarcin Jurkowski <marcin1j@gmail.com>
Tue, 25 Jul 2017 21:37:57 +0000 (23:37 +0200)
committerMarcin Jurkowski <marcin1j@gmail.com>
Fri, 15 Sep 2017 08:51:31 +0000 (10:51 +0200)
commit73dbc6cf922b395584bae3fe379b32edc9d09b4a
tree7d6c8da35a44bee6bfdc6555ae77e0e3cdb2332e
parentdf1f3a41c8935386d37c02303843f1cc232d620b
htpdate: modify init scripts to use procd and uci configuration

Modify init script to use standard uci configuration and procd for
process management. We benefit from:
- use of standard LEDE configuration with its ability to revert and
  commit changes
- validation of configuration variables
- procd taking care of restarting daemon when config changes and user
  wants to reload it
- automatic respawning of daemon process in case it dies

The source is patched to make it possible to run as a daemon in
foreground.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
net/htpdate/Makefile
net/htpdate/files/htpdate.conf [new file with mode: 0644]
net/htpdate/files/htpdate.default [deleted file]
net/htpdate/files/htpdate.init
net/htpdate/patches/101-daemon-run-in-foreground.patch [new file with mode: 0644]