If you can extract your script you can make it a service with a 
procd-init-script [0]

Then whatever file you are tracking can be set with

```
...
procd_set_param file /var/etc/your_service.conf
...
```

This will make sure that the init system restart the service every time the 
file /var/etc/your_service.conf is
changed

[0]: https://wiki.openwrt.org/inbox/procd-init-scripts

Il giorno mercoledì 1 agosto 2018 15:21:35 UTC+2, Marco Marino ha scritto:
>
> Hi, I'm using post-reload-hook directive and I'd like to write a script 
> that checks if a file (/etc/myconfig.conf for example) has been changed 
> during the configuration update. Is this possible? What's the best way to 
> achieve this?
> Thank you, 
> Marco
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to