Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:01:38+00:00 2026-05-29T04:01:38+00:00

To start Diaspora sever need to run these command: cd /home/diaspora ./script/sever My server(Ubuntu

  • 0

To start Diaspora sever need to run these command:

cd /home/diaspora

./script/sever

My server(Ubuntu 11.10) everyday restart. I need to configure the server(Ubuntu 11.10) to allow diaspora server start up whenever my server is up. How to do it?

I have tried:

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

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

then save, but it still does not start up after my server boot up.

And,if crontab -e cannot do this, is it possible to write a init script to do this? If init script is able to do this, how to write the script to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:01:38+00:00Added an answer on May 29, 2026 at 4:01 am

    First you need to create an init script:

    # This is the init script for starting up the
    #  Diaspora
    #
    # chkconfig: 345 91 10
    # description: Starts and stops the Diaspora daemon.
    #
    
    PROC_NAME=Diaspora
    DIASPORA_HOME=/home/diaspora
    # Change the user to whichever user you need
    RUN_AS_USER=diaspora
    startup="cd $DIASPORA_HOME; ./script/server"
    # Replace by stop/shutdown command
    #shutdown="$DIASPORA_HOME/script/server"
    
    start(){
     echo -n $"Starting $PROC_NAME service: "
     su -l $RUN_AS_USER -c "$startup"
     RETVAL=$?
     echo
    }
    
    stop(){
     echo -n $"Stoping $PROC_NAME service: "
     # Uncomment here to allow stop
     # su -l $RUN_AS_USER -c "$shutdown"
     RETVAL=$?
     echo
    }
    
    restart(){
      stop
      start
    }
    
    
    # See how we were called.
    case "$1" in
    start)
     start
     ;;
    stop)
     stop
     ;;
    restart)
     restart
     ;;
    *)
     echo $"Usage: $0 {start|stop|restart}"
     exit 1
    esac
    
    exit 0
    

    Then make the file executable:

    sudo chmod +x /etc/init.d/diaspora
    

    Then you need to tell Ubuntu to start/stop, usually using the default run levels (assuming you saved the previous script in /etc/init.d/diaspora):

    sudo update-rc.d diaspora defaults
    

    Then try it out:

    sudo service diaspora start
    

    or

    sudo /etc/init.d/diaspora start
    

    If diaspora starts then you’re good to go. Else the script might need adjustment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I start my browser and run a PHP program (in another server) and them
I start to write a client - server application using .net (C#) for both
I start a .Net server side program on my local workstation, but soon it
I start Firefox (Linux) via command line using a cron-job. When there is no
Start server: bin\mongod.exe -dbpath=D:\mongo\dbs -rest -logpath=logs\server.log -logappend -noauth In java: Mongo mongo = new
I start developing a new Android application from scratch these days. The company I
To start an Activity you need an Intent, like: Intent i = new Intent(context,
Start with these simple classes... Let's say I have a simple set of classes
Start a new Silverlight application... and in the code behind (in the Loaded event),
Start with a series of MS Office extensions built in C++ as COM objects.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.