mirror of https://github.com/status-im/consul.git
13 lines
234 B
Bash
13 lines
234 B
Bash
|
#!/bin/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
|