Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Run script at boot

  1. #21
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Run script at boot

    hmmm, I just installed mediatomb. You can set the user & group in /etc/default/mediatomb & you have to edit the DAEMON_ARGS variable in the /etc/init.d/mediatomb init script:
    Code:
    ...
    DAEMON_ARGS="-c /home/anton/.mediatomb/config.xml -d -u $USER -g $GROUP -P $PIDFILE -l $LOGFILE $INTERFACE_ARG $OPTIONS"
    This is clearly a BUG, the init script should read the location of the config file from /etc/default/mediatomb.

  2. #22
    Join Date
    Jun 2007
    Beans
    32

    Re: Run script at boot

    This is clearly a BUG, the init script should read the location of the config file from /etc/default/mediatomb.
    Definitely is and seems well known. I'm trying to get around this. I think the best way is to remove the entry from rc.* using update-rc so that script isn't called and then maybe use upstart.

    Do you know what I would put in an upstart conf to make it load on boot?
    Last edited by anton_pm; May 5th, 2010 at 11:45 AM.

  3. #23
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: Run script at boot

    Quote Originally Posted by anton_pm View Post
    Definitely is and seems well known. I'm trying to get around this. I think the best way is to remove the entry from rc.* using update-rc so that script isn't called and then maybe use upstart.

    Do you know what I would put in an upstart conf to make it load on boot?
    This one works for me:
    /etc/init/mediatomb.conf:
    Code:
    # mediatomb
    #
    
    description     "mediatomb"
    author          "sisco311"
    
    start on net-device-up
    
    stop on runlevel [016]
    
    emits starting-mediatomb
    
    
    script
      mediatomb -u sisco -g sisco -m /home/sisco
    end script

  4. #24
    Join Date
    Jun 2007
    Beans
    32

    Re: Run script at boot

    This one works for me:
    /etc/init/mediatomb.conf:
    And for me too

    I guess I need to learn more about upstart.

Page 3 of 3 FirstFirst 123

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
  •