svn commit: r1614355 - /ofbiz/trunk/tools/rc.ofbiz.for.debian

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1614355 - /ofbiz/trunk/tools/rc.ofbiz.for.debian

jleroux@apache.org
Author: jleroux
Date: Tue Jul 29 14:03:38 2014
New Revision: 1614355

URL: http://svn.apache.org/r1614355
Log:
A patch from Julien Nicolas for "modification on daemon script for debian" https://issues.apache.org/jira/browse/OFBIZ-5693

The 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/trunk/tools/rc.ofbiz.for.debian

Modified: ofbiz/trunk/tools/rc.ofbiz.for.debian
URL: http://svn.apache.org/viewvc/ofbiz/trunk/tools/rc.ofbiz.for.debian?rev=1614355&r1=1614354&r2=1614355&view=diff
==============================================================================
--- ofbiz/trunk/tools/rc.ofbiz.for.debian (original)
+++ ofbiz/trunk/tools/rc.ofbiz.for.debian Tue Jul 29 14:03:38 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