Lines Matching +full:monitor +full:- +full:script +full:- +full:pid
30 # This script manipulates DHCPv6-PD configuration.
56 …k || test "$PLATFORM" = raspbian || test "$PLATFORM" = ubuntu || die "DHCPv6-PD is not tested unde…
96 # A hook script is provided to lookup the hostname if not set by the DHCP
98 nohook lookup-hostname
118 sudo tee -a ${DHCPCD_CONF} <<EOF
160 # This script notifies about NCP state changes.
163 set -euxo pipefail
165 PID=\$\$
170 echo \${PID} > "/tmp/\${NAME}.pid"
172 if [ -z \${IFACE} ]; then
182 logger -t "\${NAME}[\${PID}]" "Notifying about change state to: \${1} on the interface: \${2}"
184 for SCRIPT in \`find \${DISPATCHER_PATH} -type f\`; do
185 logger -t "\${NAME}[\${PID}]" "Running script: \${SCRIPT}"
186 .\${SCRIPT} \${1} \${2}
194 while read -r LINE; do
195 if echo \${LINE} | grep -q "NCP:State"; then
200 if [ \${NEXT_LINE_IS_STATE} -eq 1 ]; then
203 STATE=\`echo \${LINE} | cut -d'"' -f2\`
209 dbus-monitor --system "\${WATCH1}" | process_output
245 # This script reloads dhcpcd.
248 PID=\$\$
256 if systemctl is-active NetworkManager; then
257 logger -t "\${NAME}[\${PID}]" "NetworkManager: active"
259 if ! [ -f \${DHCPCD_INTERFACES} ]; then
264 logger -t "\${NAME}[\${PID}]" "dhcpcd: rebind on the interface: \${interface}"
265 /sbin/dhcpcd -6 -n \${interface}
269 if systemctl is-active dhcpcd; then
270 logger -t "\${NAME}[\${PID}]" "dhcpcd: reload"
272 sudo systemctl reload-daemon
273 sudo systemctl force-reload dhcpcd
284 After=otbr-agent.service
289 PIDFile=/tmp/ncp_state_notifier.pid
290 KillMode=control-group
293 WantedBy=multi-user.target
309 sudo mkdir -p ${NCP_STATE_DISPATCHER}
317 sudo systemctl daemon-reload
319 if systemctl is-active NetworkManager; then
323 if systemctl is-active dhcpcd; then
346 sudo rm -r ${NCP_STATE_DISPATCHER} || true
353 sudo systemctl daemon-reload
355 if systemctl is-active NetworkManager; then
359 if systemctl is-active dhcpcd; then