On 24 May 2017 at 10:10, Raymond Burkholder <[email protected]> wrote:

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

Would you mind sending a patch which sets both  SYSTEMCTL_SKIP_REDIRECT and
_SYSTEMCTL_SKIP_REDIRECT? If you prefer that I do it, let me know.




> # 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

Reply via email to