Running icald at Startup

For those looking for how to add icald at startup, put the following files in /Library/StartupItems:

Create a icald directory (sudo mkdir /Library/StartupItems/icald)

Use VI to create two files within that directory:

-rwxr-xr-x 1 root wheel 272 Jul 9 16:14 StartupParameters.plist

-rwxr-xr-x 1 root wheel 125 Jul 9 16:17 icald

StartupParameters.plist Contents:

{

Description = "icald Initialization";

Provides = ("icald");

Requires = ("Network", "Disks", "Resolver");

Uses = ("NFS");

OrderPreference = "Last";

Messages =

{

start = "Starting icald";

stop = "Stopping icald";

};

}

icald Contents:

#!/bin/sh

##

# Start icald

##

. /etc/rc.common

ConsoleMessage "Starting icald"

sudo /usr/local/bin/icald -u 503

NOTE: location of icald above is specific to your installation. I copied the perl script to /usr/local/bin. -u sets the "Run as" to my UID (503).

Restart and should be good to go! Make sure the files are owned by root/wheel.

Comments:

Post a Comment:
Comments are closed for this entry.
About

Thoughts from Jason Carolan -- Distinguished Engineer @ Sun and Global Systems Engineering Director - http://twitter.com/jtcarolan - http://archmatters.wordpress.com

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today