Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here's a systemd unit to put into /lib/systemd/system/wotaskd.service (could someone please convert this to a code block? I seem to lack the permission (wtf?)) 

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

Start it with systemctl start wotaskd.service

...