>Number: 178811 >Category: misc >Synopsis: nginx invoked by /usr/sbin/service failed to start passenger >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 21 14:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Elliot >Release: Freebsd 9.1 >Organization: >Environment: FreeBSD XXX.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64 >Description: After reboot or running 'service nginx restart', /usr/sbin/service would invoke /usr/local/sbin/nginx which would call passenger_ruby wrapper script which would try to execute this line"#!/usr/bin/env bash". Since /usr/sbin/service 'exec' with PATH without /usr/local/bin, bash couldn't be found and passenger failed to start.
Is it possible to change /usr/sbin/service to include /usr/local/bin when 'exec' e.g. Change exec env -i HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $* To exec env -i HOME=/ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin $dir/$script $* >How-To-Repeat: install nginx and passenger run 'service nginx restart' access webpages served by passenger >Fix: Soft link /usr/local/bin/bash to /usr/bin or modify /usr/sbin/service >Release-Note: >Audit-Trail: >Unformatted: _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
