Results 1 to 4 of 4

Thread: ubuntu with SABnzbd

  1. #1
    Join Date
    Jan 2009
    Posts
    66

    ubuntu with SABnzbd

    I have a server running with ubuntu server 8.10. And I have webmin installed it so I can control it via web. And I did it for openssh putty.

    Now I have already managed to sabnzbd correctly installed. And I can even run it by simply using this command:

    Code:
    sabnzbd

    And then the thing just runs correctly, and I can through my laptop just to sabnzbd again. Even through the dns name of my server can I join.

    Code:


    And now comes the problem. I would start as soon as my server, which also sabnzbd start. But how am I doing this?
    I can webmin a new bootup and shutdown Action. But what should I fill?

    Thank you .

  2. #2
    Dr. V Guest

    Re: ubuntu with SABnzbd

    Do yourself a Ubuntu server + SABnzbd run with the only difference is that I SABnzbd manual start server because it 24 / 7 running

    But I use this script for him to start:


    Code:
    #! / bin / sh

    case "$ 1" in
    start)
    echo "Starting SABnzbd."
    / usr / share / sabnzbd / SABnzbd.py-d-f / usr / share / sabnzbd / sabnzbd.ini
    ;
    stop)
    echo "Shutting down SABnzbd."
    / usr / bin / wget-q - delete-after "http://HOSTADDRESSORT/sabnzbd/api?mode=shutdown"
    ;
    *)
    echo "Usage: $ 0 (start | stop)"
    exit 1
    esac

    exit 0



    but you need to find out how to start the file automatically.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,026

    Re: ubuntu with SABnzbd

    in a file, save it as sabnzbd.sh. Then enter the command: chmod + x sabnzbd.sh off.

    And you webmin thing you need the location of that file input followed by a space and start.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,295

    Re: ubuntu with SABnzbd

    use vim (or gedit if you’re running a GUI) or an equivalent to write your script and make sure it starts with
    #!/bin/bash
    - make your script executable by doing chmod +x <filename>
    - copy your script to /etc/init.d/<filename>
    - run “update-rc.d <filename> defaults” (as root) you may wish to alter defaults but this is for more advanced use, defaults will probably sui

    Your script will now be ran every time your system boots, in order to remove the file from booting, first remove the script then run “update-rc.d <filename> remove” (as root) all your startup links should now be removed.

    If you run into the same problem I had -you want to run a program as a specific user- put “sudo -u <username>” in front of the command in your script.

Similar Threads

  1. Replies: 4
    Last Post: 28-03-2012, 09:51 AM
  2. Replies: 6
    Last Post: 30-01-2012, 07:16 PM
  3. Replies: 4
    Last Post: 26-07-2011, 08:28 PM
  4. Ubuntu: how to save changes on Ubuntu installed in USB?
    By NProtector in forum Operating Systems
    Replies: 3
    Last Post: 18-11-2010, 11:42 PM
  5. Ubuntu Moblin is same as Ubuntu Netbook Remix?
    By LinuxeD in forum Operating Systems
    Replies: 3
    Last Post: 24-10-2009, 11:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,124,313.16240 seconds with 16 queries