It does not create /etc/default/go-agent and /etc/default/go-server files.
The installation always puts the service in "maintenance" mode, since JAVA_HOME is not found. The part which finds JAVA_HOME uses readlink, which is not available on Solaris 10, and uses a missing function. Here are the messages:
-bash-3.2$ cat /var/svc/log/application-go-agent\:default.log
[ Jul 9 22:00:31 Enabled. ]
[ Jul 9 22:00:31 Rereading configuration. ]
[ Jul 9 22:00:31 Executing start method ("/lib/svc/method/go-agent start") ]
/lib/svc/method/go-agent: line 40: readlink: command not found
Found Java in PATH, using it.
Please set JAVA_HOME to proceed.
/lib/svc/method/go-agent: line 74: log_failure_msg: command not found
[ Jul 9 22:00:31 Method "start" exited with status 95 ]
These can be reproduced using scripts here. I'll move them to within the gocd org and change this soon. If you have vagrant installed, and run ./scripts/provision and then put an agent installer in the data/ directory and run ./scripts/install-agent go-agent-15.2.0.2246-solaris.gz, you should see this happen. The install-agent script takes care of this, and fixes it. But, you can see it happen if you remove that code from here.
Found on 15.2:
/etc/default/go-agent
and/etc/default/go-server
files.These can be reproduced using scripts here. I'll move them to within the gocd org and change this soon. If you have vagrant installed, and run
./scripts/provision
and then put an agent installer in thedata/
directory and run./scripts/install-agent go-agent-15.2.0.2246-solaris.gz
, you should see this happen. Theinstall-agent
script takes care of this, and fixes it. But, you can see it happen if you remove that code from here.