Permalink
Browse files

init.d which bash

git-svn-id: svn://svn.caucho.com/resin/trunk@8460 9c94448d-38f1-0310-a231-d98308ff1ebf
  • Loading branch information...
1 parent 6896e64 commit ce7723f747445657421c524272d2dcd71a6a5610 alex committed Sep 28, 2011
Showing with 9 additions and 1 deletion.
  1. +8 −0 configure.ac
  2. +1 −1 init.d/resin.in
View
@@ -94,6 +94,8 @@ if test -d "/etc/init.d/rc.d"; then
resin_init_d="/etc/init.d/rc.d/resin"
elif test -d "/etc/init.d"; then
resin_init_d="/etc/init.d/resin"
+elif test -d "/etc/rc.d"; then
+ resin_init_d="/etc/rc.d"
fi
AC_ARG_WITH(resin-init.d,
@@ -922,6 +924,12 @@ else
fi
rm -f /tmp/cp.test.$$.src /tmp/cp.test.$$.dest
+#
+# Find bash. FreeBSD has bash in /usr/loca/bin
+#
+BASH=`which bash`
+AC_SUBST(BASH)
+
#if test -z "${LD_SHLIB}"; then
# AC_MSG_ERROR([Can't determine compilation flags.]);
#fi
View
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!@BASH@
### BEGIN INIT INFO
# Provides: resin

0 comments on commit ce7723f

Please sign in to comment.