Hi,
ddclient is a script that checked one's IP address and then updated a registered domain name to match the IP address if it has changed. In Linux is it typically run as a daemon once the script it properly configured.
I want to run it as a daemon on my Macmini (running Tiger).
To this end I've created:
1) A folder in StartupItems called DDCLIENT
2) A script to run the daemon called DDCLIENT, located inside the directory DDCLIENT
pernod:/Library/StartupItems/DDCLIENT scott$ more DDCLIENT
#!/bin/sh
. /etc/rc.common
StartService ( )
{
ConsoleMessage "Starting DDCLIENT"
/usr/sbin/ddclient &
}
3) A property list file called StartupParameters.plist also located in the directory.
pernod:/Library/StartupItems/DDCLIENT scott$ more StartupParameters.plist
{
Description = "ddclient daemon initialization";
Provides = ("DDCLIENT");
Requires = ("Network");
OrderPreference = "Late";
Messages =
{
start = "Starting DDCLIENT";
stop = "Stopping DDCLIENT";
};
}
I should be able to run "sudo SystemStarter start DDCLIENT" and everything should be fine. Right? When I run SystemStarter it doesn't complain, but when I run "ps -aux | grep -i ddclient" I don't find any instances of ddclient running.
Does anyone see a mistake? Does systemstarter work in Tiger or is this something elimiated in the transition from Panther to Tiger?
Thank you,
SB
ddclient is a script that checked one's IP address and then updated a registered domain name to match the IP address if it has changed. In Linux is it typically run as a daemon once the script it properly configured.
I want to run it as a daemon on my Macmini (running Tiger).
To this end I've created:
1) A folder in StartupItems called DDCLIENT
2) A script to run the daemon called DDCLIENT, located inside the directory DDCLIENT
pernod:/Library/StartupItems/DDCLIENT scott$ more DDCLIENT
#!/bin/sh
. /etc/rc.common
StartService ( )
{
ConsoleMessage "Starting DDCLIENT"
/usr/sbin/ddclient &
}
3) A property list file called StartupParameters.plist also located in the directory.
pernod:/Library/StartupItems/DDCLIENT scott$ more StartupParameters.plist
{
Description = "ddclient daemon initialization";
Provides = ("DDCLIENT");
Requires = ("Network");
OrderPreference = "Late";
Messages =
{
start = "Starting DDCLIENT";
stop = "Stopping DDCLIENT";
};
}
I should be able to run "sudo SystemStarter start DDCLIENT" and everything should be fine. Right? When I run SystemStarter it doesn't complain, but when I run "ps -aux | grep -i ddclient" I don't find any instances of ddclient running.
Does anyone see a mistake? Does systemstarter work in Tiger or is this something elimiated in the transition from Panther to Tiger?
Thank you,
SB