Skip to content

addrwatch: init script not working #11842

Description

@jesusangel

Maintainer: @ondrej Caletka
Environment: arm_cortex-a9_vfpv3, 18.06.4

Description:

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 happens. 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 syslog.

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,

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions