Add config reloading
authorNeutron Soutmun <neo.neutron@gmail.com>
Mon, 27 Apr 2009 01:48:29 +0000 (08:48 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Mon, 27 Apr 2009 01:48:29 +0000 (08:48 +0700)
commitaace70f808787e6416462b9148cc6777dd2b0ec3
tree52bd6ab026e30a0e6342bba67875a730b3b53c0b
parent94c9e9e68a52a85cada2842d74d51b9407ccf5b2
Add config reloading

2009-04-27  Neutron Soutmun <neo.neutron@gmail.com>

* src/rahunas.c, src/rh-config.h, src/rh-ipset.c, src/rh-server.{h,c},
  src/rh-task-dbset.c, src/rh-task-ipset.c, src/rh-task-iptables.c,
  src/rh-task-memset.c:
  - Add config reloading by issue SIGHUP.
  - Adjust the tasks to the changes of config reloading.
* example/rahunas.init.in:
  - Add reload function.
  - In restart command, try to start if the process is not running.
* tools/firewall.sh.in: Add the KEEP_SET funtionality.
12 files changed:
ChangeLog
example/rahunas.init.in
src/rahunasd.c
src/rh-config.h
src/rh-ipset.c
src/rh-server.c
src/rh-server.h
src/rh-task-dbset.c
src/rh-task-ipset.c
src/rh-task-iptables.c
src/rh-task-memset.c
tools/firewall.sh.in