Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andysylvester opened this issue Jan 2, 2017 · 1 comment

Comments

@andysylvester
Copy link

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
Copy link
Member

nrn commented Jan 2, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants