Genvid Services Systemd¶
Installation of services on Systemd Linux
usage: genvid-services-systemd [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
{version,env,reinstall,uninstall,install,status,stop,restart,start,add_consul_dns}
...
Positional Arguments¶
command | Possible choices: version, env, reinstall, uninstall, install, status, stop, restart, start, add_consul_dns |
Named Arguments¶
–loglevel | Possible choices: DEBUG, INFO, WARNING, ERROR Set the script log level |
Sub-commands:¶
reinstall¶
Reinstall the services
genvid-services-systemd reinstall [-h] [-n NAME] [-m {dev,client,server}]
[-d DATACENTER] [-r REGION] [-b BIND]
[-w WAN] [-c NODE_CLASS] [-s SERVERS]
[--bootstrap BOOTSTRAP] [--replace-dns]
[--ec2-tag EC2_TAG] [--ec2-value EC2_VALUE]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |
Named Arguments¶
-n, –name | Name of the service (hostname by default) |
-m, –mode | Possible choices: dev, client, server Running mode (“dev”) Default: “dev” |
-d, –datacenter | |
Datacenter (“dc1”) Default: “dc1” | |
-r, –region | Region for nomad (“global”). Default: “global” |
-b, –bind | IP to bind |
-w, –wan | Wan address (None) |
-c, –class | class for nomad clients |
-s, –servers | List of servers to join by default |
–bootstrap | Number of bootstrap servers 1 Default: 1 |
–replace-dns | Used the service as default DNS (False) Default: False |
–ec2-tag | EC2 Tag to check for servers |
–ec2-value | EC2 Value to check for servers |
uninstall¶
Uninstall the service
genvid-services-systemd uninstall [-h]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |
install¶
Install the service
genvid-services-systemd install [-h] [-n NAME] [-m {dev,client,server}]
[-d DATACENTER] [-r REGION] [-b BIND] [-w WAN]
[-c NODE_CLASS] [-s SERVERS]
[--bootstrap BOOTSTRAP] [--replace-dns]
[--ec2-tag EC2_TAG] [--ec2-value EC2_VALUE]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |
Named Arguments¶
-n, –name | Name of the service (hostname by default) |
-m, –mode | Possible choices: dev, client, server Running mode (“dev”) Default: “dev” |
-d, –datacenter | |
Datacenter (“dc1”) Default: “dc1” | |
-r, –region | Region for nomad (“global”). Default: “global” |
-b, –bind | IP to bind |
-w, –wan | Wan address (None) |
-c, –class | class for nomad clients |
-s, –servers | List of servers to join by default |
–bootstrap | Number of bootstrap servers 1 Default: 1 |
–replace-dns | Used the service as default DNS (False) Default: False |
–ec2-tag | EC2 Tag to check for servers |
–ec2-value | EC2 Value to check for servers |
status¶
Check the status of the service
genvid-services-systemd status [-h]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |
stop¶
Stop a service
genvid-services-systemd stop [-h]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |
restart¶
Restart a service
genvid-services-systemd restart [-h]
[{consul,nomad,vault,docker,} [{consul,nomad,vault,docker,} ...]]
Positional Arguments¶
services | Possible choices: consul, nomad, vault, docker, [] The service to update between consul, nomad, vault, docker or nothing for all. |