Versions Compared

Key

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

...

Code Block
languagebash
cd /usr/local/omk/

Install Copy the daemon startup script.

Code Block
languagebash
cp install/omkd.init.d /etc/init.d/omkd

For Debian / Ubuntu, you will need to edit the start up script (nano /etc/init.d/omkd).

You need to replace the line

 

. /etc/init.d/functions

with 

. /lib/lsb/init-functions

Add the daemon

Code Block
languagebash

 
chkconfig --add omkd

Copy the config files.

...

Code Block
languagebash
service omkd start

NOTE for Debian / Ubuntu users. If the daemon refuses to start, you may need to alter the folder permissions. The error you might receive is below.

Starting omk daemon: daemon: fatal: refusing to execute unsafe program: /usr/local/omk/script/opmantek.sh (/usr/local/omk/script/opmantek.sh is group writable)

Change the folder permissions like so:

 

Code Block
languagebash
chmod -R 700 /usr/local/omk

chmod -R 755 /usr/local/omk/log

chmod -R 755 /usr/local/omk/conf

And start the daemon as above.

 

Test the Daemon

You should now be able to point a web browser at http://SERVER:8042/omk/oae

...