2012-03-07 64 views
1

我正在使用Mac OS X Lion並剛剛安裝了JBoss 7.1.0.AS.我無法讓JBoss服務器在系統啓動時運行。我創建了以下文件(/System/Library/LaunchDaemons/jboss.plist)...任何人都有在Mac OSX Lion上啓動時運行JBoss的launchd腳本?

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$ 
<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>ProgramArguments</key> 
<array> 
<string>sh /opt/jboss-as-7.1.0.Final/bin/standalone.sh</string> 
</array> 
<key>RunAtLoad</key> 
<true/> 
<key>UserName</key> 
<string>davea</string> 
</dict> 
</plist> 

然而,當我重新啓動我的電腦,服務器沒有運行。有沒有人在Mac OS X Lion上爲JBoss提供工作啓動腳本,或者您是否可以看到上述問題?

感謝,

回答

1

願所有子孫後代受益於神聖的知識,我快要摔倒(感謝,巴里馬戈利斯)。腳本是

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple$ 
<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>/opt/jboss-as-7.1.0.Final/bin/standalone.sh</string> 
<key>StandardOutPath</key> 
<string>/Users/davea/out.log</string> 
<key>RunAtLoad</key> 
<true/> 
<key>UserName</key> 
<string>davea</string> 
</dict> 
</plist> 

確保腳本使用root:wheel owner和group註冊到644 perms。 Rock on, - 戴夫

相關問題