If there's no output, it worked. If it didn't work, the log from the service is at /var/svc/log/application-teamcity\:default.log.
/Erik
<?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-- Manifest for Jetbrains TeamCity server Erik Tjernlund, 2009-01-15 -->
<!-- Wait for network interfaces to be initialized --> <dependency name='network' grouping='require_all' restart_on='error' type='service'> <service_fmri value='svc:/milestone/network:default'/> </dependency>
<!-- Wait for all local filesystems to be mounted --> <dependency name='filesystem-local' grouping='require_all' restart_on='none' type='service'> <service_fmri value='svc:/system/filesystem/local:default'/> </dependency>
<!-- Run as "teamcity" user and set environment variables --> <method_context> <method_credential user='teamcity' group='teamcity' privileges='basic'/> <method_environment> <envvar name='CATALINA_OPTS' value='-server -Xmx512m -XX:MaxPermSize=128m -Dlog4j.configuration=file:/opt/teamcity/conf/teamcity-server-log4j.x\ ml -Dteamcity_logs=/opt/teamcity/logs -Djava.awt.headless=true'/> <envvar name='CATALINA_HOME' value='/opt/teamcity'/> </method_environment> </method_context>
(Answering my own post as it might help other solaris users some day...)
I created a first draft for a solaris smf service for teamcity.
Save xml as /var/svc/manifest/local/teamcity.xml (or what ever you like...) and import with:
$ svccfg import /var/svc/manifest/local/teamcity.xml
Start service with:
$ svcadm enable teamcity
Check if service has started:
$ svcs -xv
If there's no output, it worked. If it didn't work, the log from the service is at /var/svc/log/application-teamcity\:default.log.
/Erik
Erik, thanks a lot for your efforts!
This is an evidence of real community power for tools like TeamCity
Thanks again,
KIR