forked from jamesc/apache-activemq
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.d.patch
70 lines (60 loc) · 2.73 KB
/
init.d.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
diff -uNr apache-activemq-5.4-SNAPSHOTp/bin/linux-x86-32/activemq apache-activemq-5.4-SNAPSHOT/bin/linux-x86-32/activemq
--- apache-activemq-5.4-SNAPSHOTp/bin/linux-x86-32/activemq 2010-05-19 15:16:22.000000000 +0200
+++ apache-activemq-5.4-SNAPSHOT/bin/linux-x86-32/activemq 2010-05-19 15:21:16.000000000 +0200
@@ -20,18 +20,18 @@
# Application
APP_NAME="ActiveMQ"
APP_LONG_NAME="ActiveMQ Broker"
-ACTIVEMQ_HOME="../.."
+ACTIVEMQ_HOME="/usr/share/activemq"
# Wrapper
-WRAPPER_CMD="wrapper"
-WRAPPER_CONF="wrapper.conf"
+WRAPPER_CMD="/usr/lib/activemq/linux/wrapper"
+WRAPPER_CONF="/etc/activemq/wrapper.conf"
# Priority at which to run the wrapper. See "man nice" for valid priorities.
# nice is only used if a priority is specified.
PRIORITY=
# Location of the pid file.
-PIDDIR="."
+PIDDIR="/var/run/activemq/"
# If uncommented, causes the Wrapper to be shutdown using an anchor file.
# When launched with the 'start' command, it will also ignore all INT and
@@ -46,7 +46,7 @@
# NOTE - This will set the user which is used to run the Wrapper as well as
# the JVM and is not useful in situations where a privileged resource or
# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
+RUN_AS_USER=activemq
# The following two lines are used by the chkconfig command. Change as is
# appropriate for your application. They should remain commented.
diff -uNr apache-activemq-5.4-SNAPSHOTp/bin/linux-x86-64/activemq apache-activemq-5.4-SNAPSHOT/bin/linux-x86-64/activemq
--- apache-activemq-5.4-SNAPSHOTp/bin/linux-x86-64/activemq 2010-05-19 15:16:22.000000000 +0200
+++ apache-activemq-5.4-SNAPSHOT/bin/linux-x86-64/activemq 2010-05-19 15:21:30.000000000 +0200
@@ -20,18 +20,18 @@
# Application
APP_NAME="ActiveMQ"
APP_LONG_NAME="ActiveMQ Broker"
-ACTIVEMQ_HOME="../.."
+ACTIVEMQ_HOME="/usr/share/activemq"
# Wrapper
-WRAPPER_CMD="wrapper"
-WRAPPER_CONF="wrapper.conf"
+WRAPPER_CMD="/usr/lib/activemq/linux/wrapper"
+WRAPPER_CONF="/etc/activemq/wrapper.conf"
# Priority at which to run the wrapper. See "man nice" for valid priorities.
# nice is only used if a priority is specified.
PRIORITY=
# Location of the pid file.
-PIDDIR="."
+PIDDIR="/var/run/activemq/"
# If uncommented, causes the Wrapper to be shutdown using an anchor file.
# When launched with the 'start' command, it will also ignore all INT and
@@ -46,7 +46,7 @@
# NOTE - This will set the user which is used to run the Wrapper as well as
# the JVM and is not useful in situations where a privileged resource or
# port needs to be allocated prior to the user being changed.
-#RUN_AS_USER=
+RUN_AS_USER=activemq
# The following two lines are used by the chkconfig command. Change as is
# appropriate for your application. They should remain commented.