Starting a daemon with OSX boots :D

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

  1. generik macrumors 601


    Aug 5, 2005
    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


    Apr 29, 2005
    PA, US
    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.
  3. ElectricSheep macrumors 6502


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

Share This Page