Koozali.org: home of the SME Server

run program in server startup.

Offline tropicalview

  • *****
  • 196
  • +0/-0
    • http://www.tropicalview.net
run program in server startup.
« on: April 27, 2009, 09:53:52 PM »
Dear all,

a very basic question,

I would like to run this application:
http://etherpad.com/ep/about/pricing-eepnet

that requires a simple command to call on the startup:

 java -Xmx512M -jar enterprise-etherpad-1.0b4.jar &

how can i configure that and how can i make sure this will not be taken away with a reconfigure of the server?

Kind regards,
The sky is not the limit, But when I reach the sky, for sure I will not try to go to the limit.... (donated $25,- upto now)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: run program in server startup.
« Reply #1 on: April 30, 2009, 02:37:24 AM »
You could add it to /etc/rc.local

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: run program in server startup.
« Reply #2 on: April 30, 2009, 02:11:39 PM »
You can also add it to the "local" event, which was recommended to me over 'rc.local' some years ago by one of the developers.

The following pages include examples of how to add commands to the local event:
http://wiki.contribs.org/Mount_Network_Shares#Modify_the_SME_local_event
http://wiki.contribs.org/USBDisks#Mount_your_disk_automatically_at_boot-up
http://wiki.contribs.org/Nessus#Server_Installation (scroll down a bit)
http://wiki.contribs.org/JetwayMiniITX#Other_Tips_.26_Tricks (scroll down)

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: run program in server startup.
« Reply #3 on: April 30, 2009, 05:29:54 PM »
There we go, the propper way of doing it.
Thanks mmccarn

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: run program in server startup.
« Reply #4 on: April 30, 2009, 08:10:38 PM »
There we go, the propper way of doing it.

I don't know exactly why the local event was recommended to me - my (vague) memory is that there are SME things that happen after "rc.local" that you may want to be complete before you start running things of your own.