Commit 837062e2 authored by Ad Schellevis's avatar Ad Schellevis

configd (check_reload_status) add extra config directory to improve plugin support

parent 5f38b93d
[start.proxy]
command:/usr/local/etc/rc.d/squid start
parameters:
type:script
message:starting proxy
[stop.proxy]
command:/usr/local/etc/rc.d/squid stop
parameters:
type:script
message:stopping proxy
[restart.proxy]
command:/usr/local/etc/rc.d/squid restart
parameters:
type:script
message:restarting proxy
......@@ -193,7 +193,7 @@ class ActionHandler(object):
"""
self.action_map = {}
for config_filename in glob.glob('%s/actions_*.conf'%(self.config_path)):
for config_filename in glob.glob('%s/actions_*.conf'%(self.config_path)) + glob.glob('%s/actions.d/actions_*.conf'%(self.config_path)):
# traverse config directory and open all filenames starting with actions_
cnf=ConfigParser.RawConfigParser()
cnf.read(config_filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment