Issue: Unable to start Deploy as a service after upgrade

Issue

After upgrading Deploy to 22.3.x, unable to start Deploy as a service. It throws the following error:

error evaluating if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\
/init.d\/rcX.d' : startup failed:

Script1.groovy: 1: Unexpected character: '\'' @ line 1, column 14.

if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return '\/etc\/init.d\/rcX.d'

Affected Products & Versions

Deploy 22.3.x

Cause

This could happen if you copied the xld-wrapper.conf.posix from your old instance to the 22.3.x  instance.

Workaround/Resolution Action

Edit your <Deploy_Home>/conf/xldr-wrapper.conf.posix

Replace the following

wrapper.daemon.runleveldir=${if (new File('\/etc\/rc0.d').exists()) return '\/etc\/rcX.d' else return
'\/etc\/init.d\/rcX.d'}

with

wrapper.daemon.system = initd
wrapper.daemon.runleveldir=${if (new File('/etc/rc0.d').exists()) return '/etc/rcX.d' else return
'/etc/init.d/rcX.d'}

Now, install Deploy as a service.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.