17 lines
352 B
Bash
17 lines
352 B
Bash
#!/bin/bash
|
|
# Cleanup script to remove the IPC message queue
|
|
|
|
MSG_QUEUE_KEY="0x1b11193c0"
|
|
|
|
echo "Removing message queue with key: $MSG_QUEUE_KEY"
|
|
ipcrm -Q $MSG_QUEUE_KEY 2>/dev/null
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Message queue removed successfully"
|
|
else
|
|
echo "No message queue found or already removed"
|
|
fi
|
|
|
|
echo "Current message queues:"
|
|
ipcs -q
|