-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
287 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CONF files are platform dependant; please edit all of them |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
deployment/release/darwin/LaunchAgents/com.aerospike.amc.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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 > | ||
<plist version="1.0"> | ||
<dict> | ||
<key>Label</key> | ||
<string>com.aerospike.amc</string> | ||
<key>ProgramArguments</key> | ||
<array> | ||
<string>/Library/amc/amc</string> | ||
<string>-config-file=/Library/amc/amc.conf</string> | ||
</array> | ||
<key>Sockets</key> | ||
<dict> | ||
<key>Listeners</key> | ||
<dict> | ||
<key>SockServiceName</key> | ||
<string>6060</string> | ||
</dict> | ||
</dict> | ||
<key>KeepAlive</key> | ||
<true /> | ||
<key>StandardOutPath</key> | ||
<string>/Library/amc/amc.txt</string> | ||
<key>StandardErrorPath</key> | ||
<string>/Library/amc/amc.txt</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/sh | ||
|
||
SIGNAL=${1:-status} | ||
|
||
PROJECT="/opt/amc" | ||
PIDFILE="/tmp/amc.pid" | ||
CONFIG="/etc/amc/amc.conf" | ||
|
||
CMD="${PROJECT}/amc -daemon -config-file=${CONFIG}" | ||
port="8081" | ||
check_amc_status(){ | ||
status=1 | ||
if [ -z "`ps aux | grep amc | grep -v grep`" ]; then | ||
status=0 | ||
fi | ||
echo $status | ||
} | ||
|
||
start_amc(){ | ||
status=$(check_amc_status) | ||
if [ $status -eq 0 ] ; then | ||
rm -f $PIDFILE | ||
${CMD} | ||
fi | ||
} | ||
|
||
stop_amc(){ | ||
status=$(check_amc_status) | ||
if [ $status -nq 0 ] ; then | ||
"${CMD} -signal stop" | ||
fi | ||
} | ||
|
||
case $SIGNAL in | ||
'start') | ||
start_amc() | ||
;; | ||
'stop') | ||
stop_amc() | ||
;; | ||
'status') | ||
check_amc_status() | ||
;; | ||
*) | ||
echo "Unrecognized signal" | ||
exit 1 | ||
;; | ||
esac |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.