Starting a daemon with OSX boots :D

Discussion in 'macOS' started by generik, Nov 4, 2005.

  1. generik macrumors 601

    generik

    Joined:
    Aug 5, 2005
    Location:
    Minitrue
    #1
    I'm trying to figure out if I can actually start mldonkey such that it started when the system boots, instead of me having to open a special terminal window for it each time I log in.. :D

    Is there such a thing as a autoexec.bat or whatever in OSX?
     
  2. tag macrumors 6502a

    tag

    Joined:
    Apr 29, 2005
    Location:
    PA, US
    #2
    There are two ways that I know in which you could do this.

    1) The easier way would be with LoginItems. To add a program to your login item list, goto 'System Preferences', click 'Accounts', the to the tab 'Login Items'. There you can add items to this list that will open up after you login. You can even click to have the app hidden after opening by checking the 'Hide' checkbox. The only downside to this is that the program doesn't load until login.

    2) If you absolutely need the mldonkey daemon to run at boot time, you will have to create a Cron job for it. This following article from macosxhints shows how to set it up and modify crontab.

    http://www.macosxhints.com/article.php?story=20041105070509783&query=startup+via+crontab
     
  3. ElectricSheep macrumors 6502

    ElectricSheep

    Joined:
    Feb 18, 2004
    Location:
    Wilmington, DE
    #3
    Using cron to control daemonic services is depreciated in MacOS 10.4. Instead, consider using launchd.
     

Share This Page