| 1 | = JBOSS HowTo Auto Satrt on Reboot |
| 2 | |
| 3 | Tags: [[JBOSS]] [[HowTo]] |
| 4 | |
| 5 | == Procedure |
| 6 | |
| 7 | To automatically start on reboot. Add the following line to the crotab of a user with the permissions to run JBOSS. (wwwrun on the lamp servers) |
| 8 | |
| 9 | {{{ |
| 10 | @reboot /local/jboss-5.1.0.GA/bin/run.sh -b 0.0.0.0 & |
| 11 | }}} |
| 12 | |
| 13 | This will probably require some ACL changes. Here are the ones that were required on the University LAMP server: |
| 14 | |
| 15 | {{{ |
| 16 | setfacl -m u:wwwrun:rwx log |
| 17 | setfacl -m u:wwwrun:rw data/jnp-service.url |
| 18 | setfacl -m u:wwwrun:rwx data/hypersonic |
| 19 | setfacl -m u:wwwrun:rwx data/hypersonic/* |
| 20 | setfacl -m u:wwwrun:rw data/hypersonic/* |
| 21 | setfacl -m u:wwwrun:wrx /local/jboss-5.1.0.GA/server/default/data |
| 22 | setfacl -m u:wwwrun:rwx tmp/ |
| 23 | setfacl -m u:wwwrun:rwx vfs-nested.tmp |
| 24 | setfacl -m u:wwwrun:rwx work/ |
| 25 | setfacl -m u:wwwrun:rwx work/jboss.web/localhost/ |
| 26 | setfacl -m u:wwwrun:rwx work/jboss.web/localhost/* |
| 27 | }}} |
| 28 | |
| 29 | [[BackLinks]] |