Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion cookbooks/arcgis-enterprise/providers/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,14 @@
if node['init_package'] == 'init'
arcgisserver_path = '/etc/init.d/arcgisserver'
service_file = 'arcgisserver.erb'
template_variables = ({ :agshome => agshome })

if node['arcgis']['version'].start_with? '10.4'
properties_file = 'arcgis-server-framework.properties'
else
properties_file = 'arcgis-framework.properties'
end

template_variables = ({ :agshome => agshome, :agsproperties => properties_file })
# Systemd
else node['init_package'] == 'systemd'
arcgisserver_path = '/etc/systemd/system/arcgisserver.service'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
### END INIT INFO

invoker=`id | cut -f 2 -d '(' | cut -f 1 -d ')'`
agsfilecheck=framework/etc/arcgis-framework.properties
agsfilecheck=framework/etc/<%=@agsproperties%>

rwd=`dirname $0`/../../..
if [ -L "$0" ]; then
Expand Down