fedwiki/wiki

Looking for method to restart wiki on reboot other than using standard install script

Opened this issue · 1 comments

I had to recreate my wiki site (http://fedwiki.andysylvester.com, not currently running), so I decided to work out a way to install wiki without the standard install script (see http://forage.ward.fed.wiki.org/view/deploying-a-wiki). I have worked out a method for doing the install and setting up wiki to continue running after logging out from the terminal (created a script to run the commands). The script is as follows:

nohup wiki -p 80 > allout.txt 2>&1 &
disown %1

The last issue I am working on is how to start wiki again if the server is rebooted.

I have tried several methods, but have not had success:

  1. Added a @reboot entry in crontab to call the above script
  2. Added a call to the above script to /etc/rc.local:
    sh /root/mywiki.sh

I would appreciate any other ideas.

Andy Sylvester

nrn commented