Women in Technology

Hear us Roar

  Learning the Terminal in Jaguar, Part 1
Subject:   What about startup items?
Date:   2002-12-07 05:10:38
From:   astromac
Does crontab have the capability to schedule things to launch upon startup? For instance, if I were on a Linux machine how would I arrange it so that apache was launched upon startup?

Great article. I'm a long time Mac guy that's really appreciating the Unix underneath.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • What about startup items?
    2002-12-09 07:32:39  charlesa1 [View]

    You should be able to use @reboot in place of the first five fields - just like most BSD systems. Well, at least you can in 10.1 - I haven't verified it in 10.2. (For some reason, the crontab(5) manpage doesn't appear to be on my Jaguar system, so I can't be sure.)

    Of course, the OS X-ish way is to create detailed scripts in /Library/StartupItems that will be scheduled and run in the proper order by /sbin/SystemStarter, according to which services they require and provide. Generally, these are turned on and off by setting flags in /etc/hostconfig. See /System/Library/StartupItems for Apple-supplied scripts.