My problem is here
vi etcd-server-startup.sh
#This is wrong
[program:etcd-server-7-12]
command=/opt/etcd/etcd-server-startup.sh ; the program (relative uses PATH, can take args)
numprocs=1 ; number of processes copies to start (def 1)
directory=/opt/etcd ; directory to cwd to before exec (def no cwd)
autostart=true ; start at supervisord start (default: true)
autorestart=true ; retstart at unexpected quit (default: true)
startsecs=30 ; number of secs prog must stay running (def. 1)
startretries=3 ; max # of serial start failures (default 3)
exitcodes=0,2 ; 'expected' exit codes for process (default 0,2)
stopsignal=QUIT ; signal used to kill process (default TERM)
stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10)
user=etcd ; setuid to this UNIX account to run the program
redirect_stderr=true ; redirect proc stderr to stdout (default false)
stdout_logfile=/data/logs/etcd-server/etcd.stdout.log ; stdout log path, NONE for none; default AUTO
stdout_logfile_maxbytes=64MB ; max # logfile bytes b4 rotation (default 50MB)
stdout_logfile_backups=5 ; # of stdout logfile backups (default 10)
stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)
stdout_events_enabled=false ; emit events on stdout writes (default false)
#Right
```bash
#!/bin/sh
./etcd --name etcd-server-8-12 \
--data-dir /data/etcd/etcd-server \
--listen-peer-urls https://192.168.118.12:2380 \
--listen-client-urls https://192.168.118.12:2379,http://127.0.0.1:2379 \
--quota-backend-bytes 8000000000 \
--initial-advertise-peer-urls https://192.168.118.12:2380 \
--advertise-client-urls https://192.168.118.12:2379,http://127.0.0.1:2379 \
--initial-cluster etcd-server-8-12=https://192.168.118.12:2380,etcd-server-8-21=https://192.168.118.21:2380,etcd-server-8-22=https://192.168.22:2380 \
--ca-file ./certs/ca.pem \
--cert-file ./certs/etcd-peer.pem \
--key-file ./certs/etcd-peer-key.pem \
--client-cert-auth \
--trusted-ca-file ./certs/ca.pem \
--peer-ca-file ./certs/ca.pem \
--peer-cert-file ./certs/etcd-peer.pem \
--peer-key-file ./certs/etcd-peer-key.pem \
--peer-client-cert-auth \
--peer-trusted-ca-file ./certs/ca.pem \
--log-output stdout
~
~
Etcd start stop command
~]# supervisorctl start etcd-server-7-12
~]# supervisorctl stop etcd-server-7-12
~]# supervisorctl restart etcd-server-7-12
~]# supervisorctl status etcd-server-7-12
Read More:
- Etcd Error: mvcc: database space exceeded
- [Solved] GLSL Lint: Failed to spawn ‘glslangValidator‘ binary. Error: spawn glslangValidator.exe ENOENT
- Start failure: spawn CMD enoent error (How to Fix)
- [ERROR] [1632398141.557684, 290.045000]: Spawn service failed. Exiting.
- How to Solve Error: spawn xxxx ENOENT
- Hexo Error: error: spawn failed [How to Solve]
- [Solved] Frida spawn process failed on Android ‘Error: VM::AttachCurrentThread failed: -1
- [Solved] Android7 8 Jack server SSL error: Jack server failed to (re)start, try ‘jack-diagnose’ or see Jack server log
- [Solved] VIVADO Compile Error: Spawn failed: No error
- [Solved] error when starting dev server:Error: listen EACCES: permission denied 0.0.0.0:80 at Server.set
- [Solved] Error from server (InternalError): an error on the server (““) has prevented the request from suc
- Huawei kafka Authentication error: Server not found in Kerberos database (7) – LOOKING_UP_SERVER
- [Solved] Zabbix-server startup error: cannot start alert manager service: Cannot bind socket to “/var/run/zabbix/zabbix_server_alerter.sock”: [13] Permission denied.
- 500 (International server error) server error in Flash + heroku
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- How to Fix Microsoft SQL Server Error 1326
- [Solved] panic: proto: duplicate enum registered: raftpb.EntryType
- [Solved] K8s Error: ERROR: Unable to access datastore to query node configuration
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- [Solved] NTP Sync common error: no server suitable for synchrnization found