>
> Can you do a 'sh -x /etc/init.d/openvswitch-switch status' to see whether it
> looks at _SYSTEMCTL_SKIP_REDIRECT in any of the system libraries.
>
> For e.g, on a ubuntu15.04, when I run the above command, I get a match for
> _SYSTEMCTL_SKIP_REDIRECT variable in /lib/lsb/init-functions.d/40-systemd
> file. And out there it decides against redirecting.
>
Thank you for the troubleshooting pointer. Current snapshot of Debian Stretch
uses the variable without a leading underscore.
# grep -C 2 SYSTEM /lib/lsb/init-functions.d/40-systemd
# Redirect SysV init scripts when executed by the user
if [ $PPID -ne 1 ] && [ -z "${SYSTEMCTL_SKIP_REDIRECT:-}" ]; then
case $(readlink -f "$0") in
/etc/init.d/*)
By changing the variable name in the init.d script, I am able to obtain the
desired result:
# /etc/init.d/openvswitch-switch status
ovsdb-server is running with pid 625
ovs-vswitchd is running with pid 636
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev