Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Feb 2 '12 at 9:09

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

1 Answer 1

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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