I created a manefest and it looks as follow:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='wsvws'>
<service name='application/jboss/wsvws' type='service' version='1'>
<create_default_instance enabled='false' />
<method_credential user='wsvws' group='jboss' />
<exec_method type='method' name='start' exec='/lib/svc/method/wsvws start'
<exec_method type='method' name='stop' exec='/lib/svc/method/wsvws stop'
<exec_method type='method' name='restart'
exec='/lib/svc/method/wsvws restart' timeout_seconds='60' />
<stability value='Evolving' />
<loctext xml:lang='C'>REPLACE_ME </loctext>
<manpage title='REPLACE_ME ' section='REPLACE_ME ' />
<doc_link name='REPLACE_ME' uri='REPLACE_ME' />
In the section <exec_method/> the file '/lib/svc/method/wsvws' is an init-script for starting|stopping the Jboss.
When I enable the manefest, the Jboss will be started. But when I use the init-script to stop the Jboss, though the Jboss will be stopped but it will be started again. Follwing is the /var/svc/log/application-jboss-wsvws:default.log:
/usr/share/jbossas/bin/standalone.sh: kill: bad signal
*** JBossAS process (5012) received signal ***
[ Jul 10 09:08:31 Stopping because all processes in service exited. ]
[ Jul 10 09:08:31 Executing stop method ("/lib/svc/method/wsvws stop") ]
Stopping jboss-as... Jboss is stopped.
[ Jul 10 09:08:32 Method "stop" exited with status 0 ]
[ Jul 10 09:08:32 Executing start method ("/lib/svc/method/wsvws start") ]
Starting jboss-as ... cleaning the cache ...
/opt/jboss-apps/wsvws/tmp is deleted
/opt/jboss-apps/wsvws/data is deleted
skipping 736 lines of /var/log/jboss-apps/wsvws/server.log
[ Jul 10 09:08:34 Method "start" exited with status 0 ]
Seems I can't use the init-script but only the svcadm to controll the Jboss starting and stopping?
You have already posted this to an other forum web site:
You have received assistance at the other web site (and received it from skilled people).
There is no need to have people post answers here that you may have already received elsewhere. That wastes THEIR time.
If you had merely mentioned the existence of the other posts by pasting the actual link to your other posts, you would have shown nice forum manners.
Also, glancing in your posting history here, you seem to habitually "forget" to mention cross-posts and multi-posts.
This thread is locked as it is redundant to those.