[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-dev] darwin-init.sh under OS X Tiger
- To: <ossec-dev@xxxxxxxxx>
- Subject: [ossec-dev] darwin-init.sh under OS X Tiger
- From: Charlie Scott <cscott@xxxxxxxxxxxxxxxxx>
- Date: Tue, 06 Mar 2007 17:16:23 -0600
- Thread-index: AcdgRXSvs2gLucw4EdusQgAWy5y3Ig==
- Thread-topic: darwin-init.sh under OS X Tiger
Hello,
I'm not sure who's maintaining the darwin-init.sh script, but I just wanted
to let you know that I was only able to get it to properly build the OSSEC
script and StartupParameters.plist under Mac OS X Tiger (10.4.8 in my case)
with the following modifications (also attached).
I don't know if this is because of changes between older versions of OS X
and Tiger or not, but I thought I would pass this along.
Thanks,
Charlie
--- darwin-init.sh 2006-08-21 13:34:46.000000000 -0500
+++ darwin-init-tiger.sh 2007-03-06 16:48:45.000000000 -0600
@@ -5,8 +5,7 @@
mkdir -p /Library/StartupItems/OSSEC
cat <<EOF >/Library/StartupItems/OSSEC/StartupParameters.plist
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
-www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
@@ -22,10 +21,6 @@
<array>
<string>OSSEC</string>
</array>
- <key>Requires</key>
- <array>
- <string>IPFilter</string>
- </array>
</dict>
</plist>
EOF
@@ -35,27 +30,27 @@
. /etc/rc.common
. /etc/ossec-init.conf
-if [ "X${DIRECTORY}" = "X" ]; then
+if [ "X\${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
StartService ()
{
- ${DIRECTORY}/bin/ossec-control start
+ \${DIRECTORY}/bin/ossec-control start
}
StopService ()
{
- ${DIRECTORY}/bin/ossec-control stop
+ \${DIRECTORY}/bin/ossec-control stop
}
RestartService ()
{
- ${DIRECTORY}/bin/ossec-control restart
+ \${DIRECTORY}/bin/ossec-control restart
}
-RunService "$1"
+RunService "\$1"
EOF
chmod 755 /Library/StartupItems/OSSEC
chmod 644 /Library/StartupItems/OSSEC/StartupParameters.plist
--- darwin-init.sh 2006-08-21 13:34:46.000000000 -0500
+++ darwin-init-tiger.sh 2007-03-06 16:48:45.000000000 -0600
@@ -5,8 +5,7 @@
mkdir -p /Library/StartupItems/OSSEC
cat <<EOF >/Library/StartupItems/OSSEC/StartupParameters.plist
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
-www.apple.com/DTDs/PropertyList-1.0.dtd">
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Description</key>
@@ -22,10 +21,6 @@
<array>
<string>OSSEC</string>
</array>
- <key>Requires</key>
- <array>
- <string>IPFilter</string>
- </array>
</dict>
</plist>
EOF
@@ -35,27 +30,27 @@
. /etc/rc.common
. /etc/ossec-init.conf
-if [ "X${DIRECTORY}" = "X" ]; then
+if [ "X\${DIRECTORY}" = "X" ]; then
DIRECTORY="/var/ossec"
fi
StartService ()
{
- ${DIRECTORY}/bin/ossec-control start
+ \${DIRECTORY}/bin/ossec-control start
}
StopService ()
{
- ${DIRECTORY}/bin/ossec-control stop
+ \${DIRECTORY}/bin/ossec-control stop
}
RestartService ()
{
- ${DIRECTORY}/bin/ossec-control restart
+ \${DIRECTORY}/bin/ossec-control restart
}
-RunService "$1"
+RunService "\$1"
EOF
chmod 755 /Library/StartupItems/OSSEC
chmod 644 /Library/StartupItems/OSSEC/StartupParameters.plist
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.