mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
13 lines
242 B
Bash
Executable File
13 lines
242 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
echo "Starting Consul..."
|
|
if [ -x "$(command -v systemctl)" ]; then
|
|
echo "using systemctl"
|
|
sudo systemctl enable consul.service
|
|
sudo systemctl start consul
|
|
else
|
|
echo "using upstart"
|
|
sudo start consul
|
|
fi
|