project_key: JBPAPP6 Please refer bugzilla issue below for details: https://bugzilla.redhat.com/show_bug.cgi?id=834255 Executing command "prunsrv.exe install path_to_startup_script" yields following results The service is installed. JBoss Enterprise Application Platform 6 is listed in the Services applet services.msc." However, I could not find any such service in Services applet.Only prunsrv service was added. Are the startup scripts not equipped for this feature?
With reference to Bugzilla issue I created earlier twells is asking for information.However I think this does not work and needs to be fixed. @Rajesh When I selected Scripts component this remained unassigned.Please reassign to concerned person who could look into this.
This is being worked on at https://bugzilla.redhat.com/show_bug.cgi?id=834255
Bugzilla Update: Added: Perform
Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=732889
Hi James, So should I assign this to you?I believe the scripts need to be fixed.
Tom Fonteyne <tfonteyn> made a comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889] I think I have the full solution: 1. Make sure to set JBOSS_HOME as a system environment variable pointing to the JBoss installation directory 2. Add a system environment variable NOPAUSE=1 Alternatively edit the last line of both standalone.bat (domain.bat) / jboss-cli.bat and remove this line: if "x%NOPAUSE%" == "x" pause 3.Open a cmd.exe window 4. execute a "set JBOSS_HOME=..." (not needed if you open the cmd.exe *after* you have added the system env. var) 5. Installing the service, enter the below on one line: prunsrv //IS//JBossEAP6 --DisplayName="JBoss Enterprise Application Platform 6" --LogLevel=DEBUG --LogPath=%JBOSS_HOME%\standalone\log\ --LogPrefix=service --StdOutput=auto --StdError=auto --StartMode=exe --StartImage=cmd.exe --StartPath=%JBOSS_HOME%/bin ++StartParams="/c standalone.bat" --StopMode=exe --StopImage=cmd.exe --StopPath=%JBOSS_HOME%/bin ++StopParams="/c jboss-cli.bat --connect command=:shutdown" Adjust loglevel as required of course (f.e. just INFO) or use "domain" instead of "standalone" for executable and path as needed. 6. You should now have a service installed that you can manually start/stop from the Services window. Set to automatic is so required. Should you need to remove the service, use this: prunsrv //DS//JBossEAP6
Tom Fonteyne <tfonteyn> made a comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889] it is probably the cleanest if the above gets combined in a "service.bat" that takes commands line "install,start,stop,restart" just like JBoss 5 provided. Let me know, and I can knock on up.
James Livingston <jlivings> made a comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889] Yeah, that would work. I probably avoided that because you couldn't do it in EAP 4/5 without including the credential details - EAP 6 you can because of local authentication.
Jason Shepherd <jshepherd> made a private comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889]
Tom Fonteyne <tfonteyn> made a private comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889]
Tom Fonteyne <tfonteyn> made a comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889] In replacement of my comment #15, covering domain mode + a little cleanup, the following can be added the documentation: ===================================================================== 1. Add a system environment variable NOPAUSE=1 Alternatively edit the last line of both standalone.bat (domain.bat) / jboss-cli.bat and remove this line: if "x%NOPAUSE%" == "x" pause 2. Open a cmd.exe window 3. execute a "set JBOSS_HOME=..." or use the full path in the below statement 4. Installing the service, enter one of the below on one line: For standalone: prunsrv //IS//JBossEAP6 --DisplayName="JBoss Enterprise Application Platform 6" --LogLevel=INFO --LogPath=%JBOSS_HOME%\standalone\log\ --LogPrefix=service --StdOutput=auto --StdError=auto --StartMode=exe --StartImage=cmd.exe --StartPath=%JBOSS_HOME%/bin ++StartParams="/c standalone.bat" --StopMode=exe --StopImage=cmd.exe --StopPath=%JBOSS_HOME%/bin ++StopParams="/c jboss-cli.bat --connect command=:shutdown" For domain mode: prunsrv //IS//JBossEAP6 --DisplayName="JBoss Enterprise Application Platform 6" --LogLevel=INFO --LogPath=%JBOSS_HOME%\domain\log\ --LogPrefix=service --StdOutput=auto --StdError=auto --StartMode=exe --StartImage=cmd.exe --StartPath=%JBOSS_HOME%/bin ++StartParams="/c domain.bat" --StopMode=exe --StopImage=cmd.exe --StopPath=%JBOSS_HOME%/bin ++StopParams="/c jboss-cli.bat --connect command=/host=master:shutdown" Note the difference in shutdown command. If not using the default "master", make sure to add the right host name or alias you used for the domain controller Adjust loglevel as required of course. 5. You should now have a service installed that you can manually start/stop from the Services window. Set to automatic if so required. Should you need to remove the service, use this: prunsrv //DS//JBossEAP6 =====================================================================
Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=732889 Added: https://bugzilla.redhat.com/show_bug.cgi?id=732889
I created the attached service.bat for EAP 6.0 usage. Copy it to the modules\native\sbin directory It's a first attempt but does the job Usage: service.bat install => installs standalone.sh service.bat install domain => installs domain.sh Other options: service.bat uninstall service.bat start service.bat stop service.bat restart You can edit the section at the top to change log level or service name. For domain mode, it uses "master" for the domain controller. Change when needed todo: - nicer user messages like for example change the printing of the errorlevel - have options for DC and loglevel
Attachment: Added: service_v1.bat
Link: Added: This issue is related to PRODMGT-219
Hi, Using Tom´s script and the problem is that the domain controller don´t stop, or better, it stops, but the windows service remains in stopping state forever until the machine restarts. anyone have this behavior? Using windows 2008 r2 server. cheers
Hi, I've tried to use the suggested work around, but the service has not been possible to stop - the Java processes went down, but the prunsrv.exe process was still running making the service to be marked as "Stopping" in the Server Manager. First after I've killed the process in the Task Manager the service has been stopped. I was testing on Windows 2008 R2.
I´ve come up with the solution. I´ve to remove all the section of the domain.bat (i believe its the same as standalone.bat): ":END if "x%NOPAUSE%" == "x" pause :END_NO_PAUSE" After doing this the windows service works well. cheers.
Tom Fonteyne <tfonteyn> made a comment on [bug 732889|https://bugzilla.redhat.com/show_bug.cgi?id=732889] yes, that bit is missing from the service script which is not finalized yet. I'll work that in later
Attachment: Added: service_v2.bat
I added the NOPAUSE support into the script. There is now no need any more to set environment variables or modify the standalone/domain.bat files. service_v2.bat 06/Sep/12 Rename it to "service.bat" and copy it to the modules\native\sbin directory Usage: service.bat install => installs standalone.sh service.bat install domain => installs domain.sh Other options: service.bat uninstall service.bat start service.bat stop service.bat restart You can edit the section at the top to change log level or service name. For domain mode, it uses "master" for the domain controller. Change when needed. todo: - nicer user messages like for example change the printing of the errorlevel - have options for DC and loglevel
Attachment: Added: service_v3.bat
service_v3.bat 14/Sep/12 - fixed the location for the service logfile - added command line options for all settings, no need to edit the script any longer => this means a change in the syntax for installing in domain mode ! - better help Install: Download service_v3.bat, rename it to "service.bat" and copy it to the modules\native\sbin directory Run the batch file without arguments to get usage information. still todo: nicer user messages like for example change the printing of the errorlevel
service_v4.bat - Small changes to properly handles spaces in LogPath, StartPath, and StopPath and fix "Succes" typo.
Attachment: Added: service_v4.bat
Docs QE Status: Removed: NEW
RH Bugzilla Integration <no-reply> updated the status of jira JBPAPP6-1436 to Closed
This will be delivered in EAP 6.2.0 ER2. See BZ1006346 which tracks all the relevant info. Closing.