To start Diaspora sever, always need to cd to the /home/diaspora, then run ./script/sever My server(Ubuntu 11.10) everyday restart. I want to configure the server(Ubuntu 11.10) to allow diaspora server start up whenever my server is up. How to do it?

I use Ubuntu version 11.10 to set up my diaspora server.

link|improve this question
feedback

migrated from stackoverflow.com Feb 2 at 9:09

This question came from our site for professional and enthusiast programmers.

1 Answer

Good solution:

You can write an init script to start each time the server boots up and shut down gracefully when the system goes down.

Ubuntu uses a different init system than most other Linux distributions, so I can't help you with that, but this page https://help.ubuntu.com/community/UbuntuBootupHowto might be a good start.

Easy solution:

Log in as user you run diaspora as, open crontab editor (crontab -e), scroll to the end and enter:

@reboot cd /home/diaspora; ./script/sever

Then press Esc and type :wq to save the changes. That should do it.

link|improve this answer
It fail to auto start my diaspora server after my server reboot.. – Bao Chai Feb 2 at 9:16
sorry, it was reboot, not restart. please try that – a sad dude Feb 7 at 17:43
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.