15 lines
378 B
Bash
15 lines
378 B
Bash
#!/bin/bash
|
|
|
|
# Usage: ./start_daemon_with_config.sh /path/to/redismanager.json
|
|
|
|
CONFIG_PATH="$1"
|
|
if [ -z "$CONFIG_PATH" ]; then
|
|
echo "Usage: $0 /path/to/redismanager.json"
|
|
exit 1
|
|
fi
|
|
|
|
# Start the daemon with the specified config file
|
|
# Assumes the daemon reads config via an environment variable
|
|
export REDISMANAGER_CONFIG="$CONFIG_PATH"
|
|
dotnet run --project ../RedisManager
|