Child pages
  • Deploying on Linux

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed loss on eol in code blocks

...

Code Block
ln -s /usr/java/jdk1.6.0_27 /usr/java/jdk1.6 
ln -s /usr/java/jdk1.6/bin/java /usr/bin/java

...

Code Block
[root@ ~]# ls -l /opt 
total 12 
drwxr-xr-x 3 root root 4096 Nov 9 08:19 Developer 
drwxr-xr-x 4 root root 4096 Nov 9 08:19 Library 
drwxr-xr-x 3 root root 4096 Nov 9 08:20 Local

...

Code Block
sudo groupadd appserveradm 
sudo useradd -g appserveradm appserver

Edit the bash profile of the appserver

Code Block
#sudo# sudo su - appserver 
% vi .bash_profile

and add this line :

...

3. Next, we need to install the Wonder version wotaskd and JavaMonitor.

Code Block
$ mkdir -p /opt/Local/Library/WebObjects/JavaApplications
$ cd /opt/Local/Library/WebObjects/JavaApplications
$ wget https://jenkins.wocommunity.org/job/Wonder7/lastSuccessfulBuild/artifact/Root/Roots/wotaskd.tar.gz
$ tar zpxf wotaskd.tar.gz
$ rm wotaskd.tar.gz
$ wget https://jenkins.wocommunity.org/job/Wonder7/lastSuccessfulBuild/artifact/Root/Roots/JavaMonitor.tar.gz
$ tar zpxf JavaMonitor.tar.gz
$ rm JavaMonitor.tar.gz

4. Now we need to change some permissions:

Code Block
sudo chown -R appserver:appserveradm /opt/Local 
sudo chown -R appserver:appserveradm /opt/Library

...

Code Block
[appserver@ ~]$ $NEXT_ROOT/Local/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd & 
[appserver@ ~]$ $NEXT_ROOT/Local/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor -WOPort 56789 &

...

Code Block
sudo service wotaskd start 
sudo service womonitor start

...

Info

Don't forget to change the permissions on the startup file so that the owner is root and that everyone have execution rights!

Code Block
chown root /etc/init/wotaskd.conf 
chown root /etc/init/womonitor.conf 
chmod 755 /etc/init/wotaskd.conf 
chmod 755 /etc/init/womonitor.conf


...

Code Block
sudo service wotaskd start 
sudo service womonitor start

...

Code Block
sudo /sbin/chkconfig --add webobjects 
sudo /sbin/chkconfig webobjects on

...

Code Block
sudo update-rc.d wotaskd defaults 90 20 
sudo update-rc.d womonitor defaults 90 20

...

Info

Don't forget to change the permissions on the startup file so that the owner is root and that everyone have execution rights!

Code Block
chown root /etc/init.d/wotaskd 
chown root /etc/init.d/womonitor 
chmod 755 /etc/init.d/wotaskd 
chmod 755 /etc/init.d/womonitor


...

Code Block
# systemd unit for wotaskd to run on Ubuntu 16.04 LTS 
# Maik Musall <maik@selbstdenker.ag>, Aug 2016 [Unit] 
Description=WebObjects/Wonder wotaskd 
Documentation=https://wiki.wocommunity.org/display/documentation/Wonder+JavaMonitor+and+wotaskd 
AssertPathExists=/var/log/webobjects 
AssertPathExists=/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa 
[Service] 
User=appserver 
Group=appserveradm 
Environment=NEXT_ROOT=/opt 
Environment="JVM_OPTIONS=-Xms32m -Xmx64m -XX:NewSize=2m" 
Environment=WOTASKD_LOG=/var/log/webobjects/wotaskd.log 
ExecStart=/opt/Local/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd -WOPort 1085 -Xms32m -Xmx64m >> $WOTASKD_LOG 2>&1 Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target

...