Skip to content

Run JBoss as Mac OSX service

Use the following code to add jboss to the system process, make sure to change program string, standardOutPath, and UserName.

Step – 1: Create the following script

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
	<dict>
		<key>Label</key>
			<string>jboss</string>
		<key>Disabled</key>
		<false/>
		<key>KeepAlive</key>
			<dict>
				<key>SuccessfulExit</key>
				<false/>
			</dict>
		<key>Program</key>
			<string>/Users/sky/jboss-eap-6.3/bin/standalone.sh</string>
		<key>StandardOutPath</key>
			<string>/Users/sky/jboss-eap-6.3/out.log</string>
		<key>RunAtLoad</key>
			<true/>
		<key>UserName</key>
			<string>sky</string>
	</dict>
</plist>

Step -2 : Change the permissions

chmod 644 jboss.plist

Step – 3: Change the ownership

chown root:wheel jboss.plist

Step – 4: Launch the daemon

launchctl load jboss.plist

Shashi View All

-== Superman ==-

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: