Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#21186 - [jdk] JavaDB HOME Addition
Attached to Project:
Community Packages
Opened by Alper Kanat (T-u-N-i-X) - Monday, 11 October 2010, 09:00 GMT
Last edited by Thomas Dziedzic (tomd123) - Tuesday, 09 November 2010, 18:12 GMT
Opened by Alper Kanat (T-u-N-i-X) - Monday, 11 October 2010, 09:00 GMT
Last edited by Thomas Dziedzic (tomd123) - Tuesday, 09 November 2010, 18:12 GMT
|
DetailsCan we please add /opt/java/db/bin into jdk.profile file?
Also an init script for JavaDB would be nice.. :) |
This task depends upon
Closed by Thomas Dziedzic (tomd123)
Tuesday, 09 November 2010, 18:12 GMT
Reason for closing: Implemented
Additional comments about closing: jre-6u22-4
jdk-6u22-4
Tuesday, 09 November 2010, 18:12 GMT
Reason for closing: Implemented
Additional comments about closing: jre-6u22-4
jdk-6u22-4
An init script would start, restart, stop the JavaDB without having another software that manages it. Some application servers such as Glassfish are able to do it afaik but a standalone option would be nice.
I'll see if I can create an init script and let you know.
I haven't included it yet because I'm still waiting for the init script.
That probably answers all 3 questions.
I've just created the necessary files for an init script. There are 2 files:
1) derby-network-server.conf -> /etc/conf.d/derby-network-server (stores the setting for logging to /var/log/derby.log)
2) derby-network-server -> /etc/rc.d/derby-network-server (init script)
Any comments are welcomed! :)
As I've mentioned in my earlier post, you should place derby-network-server.conf into /etc/conf.d with the name derby-network-server
When the init script finds that file, it will place the log file into /var/log/derby.log
$ sudo netstat -tapn
You should see java listening to 1527.. If that's the case, derby is working for you :) You can also see it under running daemons and in the output of ps aux
I've tested the script against unnecessary starts and stops despite the server is running or has stopped, so you also test it for yourself.
Thanks!
everything seems to be working, so I will include this shortly in pkgver 4