Author: jleroux
Date: Tue Jul 29 14:04:52 2014
New Revision: 1614357
URL:
http://svn.apache.org/r1614357Log:
"Applied fix from trunk for revision: 1614355"
------------------------------------------------------------------------
r1614355 | jleroux | 2014-07-29 16:03:38 +0200 (mar. 29 juil. 2014) | 16 lignes
A patch from Julien Nicolas for "modification on daemon script for debian"
https://issues.apache.org/jira/browse/OFBIZ-5693The file rc.ofbiz.for.debian generate some error because of the bash type contained in the first line.
!/bin/sh should be !/bin/bash
To add it in the startup process, it must contained a specific header :
### BEGIN INIT INFO
# Provides: Apache-OFBiz ERP software
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Apache-OFBiz
# Description: Apache-OFBiz ERP Software
### END INIT INFO
------------------------------------------------------------------------
Modified:
ofbiz/branches/release12.04/ (props changed)
ofbiz/branches/release12.04/tools/rc.ofbiz.for.debian
Propchange: ofbiz/branches/release12.04/
------------------------------------------------------------------------------
Merged /ofbiz/trunk:r1614355
Modified: ofbiz/branches/release12.04/tools/rc.ofbiz.for.debian
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/tools/rc.ofbiz.for.debian?rev=1614357&r1=1614356&r2=1614357&view=diff==============================================================================
--- ofbiz/branches/release12.04/tools/rc.ofbiz.for.debian (original)
+++ ofbiz/branches/release12.04/tools/rc.ofbiz.for.debian Tue Jul 29 14:04:52 2014
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#####################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
@@ -23,6 +23,15 @@
#
# chkconfig: - 80 10
# description: OFBiz server
+### BEGIN INIT INFO
+# Provides: OFBiz ERP software
+# Required-Start: $remote_fs $syslog
+# Required-Stop: $remote_fs $syslog
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Apache-OFBiz
+# Description: OFBiz ERP Software
+### END INIT INFO
# Paths - Edit for your locations
JAVA_BINARY=/usr/java/j2sdk1.4.2/bin/java