Skip to content

Commit 42a1724

Browse files
committed
now copies jar explicitly, removed name/startas as start-stop-daemon doesn't work on ubuntu as documented
Signed-off-by: Brian Coca <[email protected]>
1 parent 1ebf398 commit 42a1724

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
get_url: url={{download_url}} dest={{cur_dir}}/{{jar_file}} force=no
66

77
- name: Copy selenium into place
8-
copy: src={{jar_file}} dest=/usr/local/lib/ owner=root group=root mode=644
8+
copy: src={{jar_file}} dest=/usr/local/lib/{{jar_file}} owner=root group=root mode=644
99

1010
- name: Install Config
1111
template: src=defaults.j2 dest=/etc/default/selenium_{{sel_role}} owner=root group=root mode=644

templates/init.j2

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ start)
100100
--make-pidfile \
101101
--user "${SE_USER}" \
102102
--group "${SE_GROUP}" \
103-
--startas ${NAME} \
104103
--exec ${JAVA_HOME}/bin/java -- ${JAVA_OPTS} -jar /usr/local/lib/{{jar_file}} ${JAR_ARGS} ${EXTRA_ARGS} 2>&1 \
105104
| logger -t "${NAME}"
106105
;;
@@ -110,7 +109,6 @@ stop)
110109
if [ $? -eq 0 ]; then
111110
start-stop-daemon --stop \
112111
--pidfile "${SE_PID}" \
113-
--name ${NAME} \
114112
--retry=TERM/30/KILL/5
115113
rc=$?
116114
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)