Hi,
I'm trying to start the addrwatch service through its init script using PROCD. I can run the program manually with this command:
/usr/sbin/addrwatch --output /var/log/addrwatch --hashsize 1024 --ratelimit -1 br-lan
But when I run /etc/init.d/addrwatch start nothing happends. The service isn't started. I have enabled PROCD_DEBUG and this is the output I get on launching the service:
# /etc/init.d/addrwatch start
{ "name": "addrwatch", "script": "\/etc\/init.d\/addrwatch", "instances": { "instance1": { "command": [ "\/usr\/sbin\/addrwatch", "--output", "\/var\/log\/addrwatch", "--hashsize", "1024", "--ratelimit", "-1", "br-lan" ], "netdev": [ "br-lan" ], "respawn": [ "3600", "5", "5" ], "triggers": [ [ "interface.*", [ "if", [ "eq", "interface", "lan" ], [ "run_script", "\/etc\/init.d\/addrwatch", "reload" ] ], 1000 ] ], "pidfile": "\/var\/run\/addrwatch.pid" } }, "triggers": [ [ "config.change", [ "if", [ "eq", "package", "addrwatch" ], [ "run_script", "\/etc\/init.d\/addrwatch", "reload" ] ], 1000 ] ], "data": { } }
It seems right to me, but the service isn't started. I can't see anything about addrwatch in logread.
This is the config file for addrwatch:
config addrwatch
option disabled '0'
list interface 'lan'
option syslog '0'
option output '/var/log/addrwatch'
option ratelimit '-1'
Do you know what's wrong? How can I start the service with the init script?
Kind regards,