Skip to content

Instantly share code, notes, and snippets.

@ryumei
Last active October 30, 2015 22:17
Show Gist options
  • Save ryumei/2a304779dafae3bfef09 to your computer and use it in GitHub Desktop.
Save ryumei/2a304779dafae3bfef09 to your computer and use it in GitHub Desktop.
Simple SMF for IBM WebSphere Liberty Profile
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!--
wlp.xml : WebSphere Liberty Profile service manifest, NAKAJIMA Takaaki
Installation
1. Install WebSphere Liberty Profile
See also https://developer.ibm.com/wasdev/websphere-liberty/
2. Put this manigest in standard location (e.g. /var/svc/manifest/site/wlp.xml)
3. Run 'svcadm restart manifest-import'
4. Run 'svcadm enable svc:/application/web/wlp'
See also https://blogs.oracle.com/SolarisSMF/entry/changes_to_svccfg_import_and
-->
<service_bundle type='manifest' name='wlp'>
<service name='application/web/wlp' type='service' version='1'>
<single_instance />
<exec_method
type='method'
name='start'
exec='/opt/IBM/wlp/bin/server start defaultServer'
timeout_seconds='30' />
<exec_method
type='method'
name='stop'
exec='/opt/IBM/wlp/bin/server stop defaultServer'
timeout_seconds='30' />
<instance name='default' enabled='false' />
<stability value='Unstable' />
<template>
<common_name>
<loctext xml:lang='C'>IBM WebSphere Liberty Profile</loctext>
</common_name>
<documentation>
<doc_link name='WAS Liberty' uri='https://developer.ibm.com/wasdev/websphere-liberty/' />
</documentation>
</template>
</service>
</service_bundle>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment