Running rtorrent/hellanzb with launchd (Lingon)

Discussion in 'Mac Basics and Help' started by pariah99, Sep 11, 2010.

  1. pariah99 macrumors newbie

    Joined:
    Sep 11, 2010
    #1
    I'm trying to have my computer launch both hellanzb and rtorrent upon logging in. My scripts are as follows:

    Code:
    #!bin/bash
    cd /opt/local/bin/
    ./hellanzb.py -D
    exit 0
    
    Code:
    #!bin/bash
    cd /opt/local/bin/
    rtorrent
    exit 0
    
    When I try to run the scripts as a user agent, the scripts try to run, but I get the following system.log entries:

    for hellanzb:
    Code:
    hellanzb v0.13 (config = /opt/local/etc/hellanzb.conf, daemonized)
    Exiting: FatalError'>: Cannot continue: hellanzb needs write access to directory:
    /users/pariah99/Downloads/.Incoming/daemon.working/
    I'm guessing that the daemon is being started under the user that isn't me, but I'm not sure how to get it working other than changing the permissions for others, which is far from ideal.

    for rtorrent:
    Code:
    Must be connected to a terminal.
    I tried to use screen -d -m rtorrent, but then I don't even get an error message.

    Does anybody have any experience getting these programs working with launchd?
     
  2. pariah99 thread starter macrumors newbie

    Joined:
    Sep 11, 2010
    #2
    Okay, so I fixed the hellanzb issue. For some reason I didn't have permissions under my username for the .Incoming folder. Still haven't solved the rtorrent issue :(
     

Share This Page