February 2020
Intermediate to advanced
734 pages
38h 13m
English
We don't provide a standard Linux init script to control the etcd service because most Linux distributions have migrated to systemd as a service control mechanism. If we wanted to control etcd in this way, we would create a file named etcd.service in the /etc/systemd/system directory with the following content:
[Unit] Description=etcd key-value store Documentation=https://github.com/etcd-io/etcd After=network.target [Service] User=postgres Type=notify ExecStart=/usr/local/bin/etcd --config-file /etc/etcd.conf Restart=always RestartSec=10s LimitNOFILE=40000 [Install] WantedBy=multi-user.target
Then, we could enable, start, and stop etcd using the following systemctl commands:
sudo systemctl enable etcd sudo systemctl start ...
Read now
Unlock full access