uwsgi init script not dash compatible, syntax error

Bug #1547593 reported by TeckFA
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
uWSGI Ubuntu package
New
Undecided
Unassigned

Bug Description

While debugging the absence of a uwsgi process after a fresh apt install of it
(having run "service uwsgi start" without problem, apparently, normal
startup message), I wanted to check by running

# sh -x /etc/init.d/uwsgi start

(Notice "sh"). This lines then displayed end in

+ ...
/etc/init.d/uwsgi: 79: /usr/share/uwsgi/init/do_command: Syntax error: redirection unexpected
#

Line 79 of the sourced script "do_command" has the end of a while loop
that reads input from a <(...) construct:

  done 4< <(find "$UWSGI_APPS_CONFDIRS" \

The line, syntactically, has the form of:

# echo 4< <(echo a)
dash: 3: Syntax error: redirection unexpected

which, while bash accepts it, dash does not accept. So, when the system shell
can be dash, the script needs fixing.

Ubuntu 14.0.4 LTS

Revision history for this message
Addo (addo-delgrossi) wrote :

Is there any outline/hack for this bug ? I have the same problem using docker with Ubuntu latest.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.