1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-12 18:41:51 +00:00

Add log when dnsmasq is restarted or reloaded

This commit is contained in:
Ycarus (Yannick Chabanois) 2019-07-25 20:43:04 +02:00
parent 4b638e2189
commit a3b242f977

View file

@ -407,8 +407,13 @@ start_service() {
config_load omr-bypass
config_foreach _bypass_proto dpis
[ -z "$RELOAD" ] && /etc/init.d/dnsmasq restart
[ -n "$RELOAD" ] && /etc/init.d/dnsmasq reload
[ -z "$RELOAD" ] && {
logger -t "omr-bypass" "Restart dnsmasq..."
/etc/init.d/dnsmasq restart
[ -n "$RELOAD" ] && {
logger -t "omr-bypass" "Reload dnsmasq..."
/etc/init.d/dnsmasq reload
}
logger -t "omr-bypass" "OMR-ByPass is running"
}