By using dash as /bin/sh, openconnect fail to start (work correctly with bash). Reproducible: Always Steps to Reproduce: 1. emerge app-shells/dash 2. emerge app-admin/eselect-sh 2. eselect sh set 2 [if only having bash and dash] 3. rc-service openconnect.vpn0 start [or any symlink to /etc/init.d/openconnect] Actual Results: openconnect |/lib64/rc/sh/runscript.sh: 85: /etc/init.d/openconnect: Syntax error: redirection unexpected openconnect | * ERROR: openconnect failed to start Expected Results: Launching openconnect without trouble. There seem to be an here-doc-string on the faulty line, where dash only support here-doc-text.
Created attachment 386488 [details] emerge --info
Created attachment 386490 [details] emerge -pqv dash eselect-sh openconnect
Created attachment 386492 [details] emerge -pqv dash eselect-sh openconnect
(In reply to tharvik from comment #3) > Created attachment 386492 [details] > emerge -pqv dash eselect-sh openconnect There have been some changes to the init script since 4.08. Have you tried openconnect 6.00 to see if it exhibits the same issue?
(In reply to Matthew Schultz from comment #4) > (In reply to tharvik from comment #3) > > Created attachment 386492 [details] > > emerge -pqv dash eselect-sh openconnect > > There have been some changes to the init script since 4.08. Have you tried > openconnect 6.00 to see if it exhibits the same issue? It's working with 6.00, no more warnings.