Skip to content

Commit

Permalink
A patch from Julien Nicolas for "modification on daemon script for de…
Browse files Browse the repository at this point in the history
…bian" 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

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614355 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
JacquesLeRoux committed Jul 29, 2014
1 parent ef2c35f commit eb594b8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tools/rc.ofbiz.for.debian
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit eb594b8

Please sign in to comment.