Command work on terminal but not wokking as system service Ubuntu 18.04 server

I have checked again and again on terminal and ./go.sh both working but not able to start as service. I know i am doing it wrong but not sure what. /root/go.sh #!/usr/bin/env bash export PATH=/sbin:/usr/sbin:/bin:/usr/bin /root/goweb/bin/echoip -t=/root/goweb/bin/index.html And /lib/systemd/system/goweb.service [Unit] Description=goweb [Service] Type=forking Restart=always RestartSec=5s ExecStart=/root/go.sh [Install] WantedBy=multi-user.target I dont know what happen now the…

Ubuntu systemd service with some argument

$ echoip -h Usage: echoip [OPTIONS] Application Options: -f, –country-db=FILE Path to GeoIP country database -c, –city-db=FILE Path to GeoIP city database -a, –asn-db=FILE Path to GeoIP ASN database -l, –listen=ADDR Listening address (default: :8080) -r, –reverse-lookup Perform reverse hostname lookups -p, –port-lookup Enable port lookup -t, –template=FILE Path to template (default: index.html) -H, –trusted-header=NAME…

Libvirt migration hostname

I’ve set up two libvirt nodes with the following hostnames: mycompany-hv-01.example.tld mycompany-hv-02.example.tld The names are declared in a public DNS and resolvable (public IPs). When I try to migrate a guest from one host to the other: [email protected]:~# virsh migrate prout qemu+ssh://mycompany-hv-01.example.tld/system –offline –persistent error: internal error: hostname on destination resolved to localhost, but migration…

Postfix won’t send big email DESPITE higher values of mailbox_size_limit and message_size_limit

My Postfix was failing to send big emails and was sending small ones. In the logs I was getting: (cannot update mailbox /var/mail/root for user root. error writing message: File too large) So I upped the mailbox_size_limit and message_size_limit. To my big surprise, the error from the logs disappeared, and now it says: status=sent (delivered…

GCP – “kubectl rollout restart” results: error: unknown command “restart”

My GCP kubernetes cluster version is: Master version 1.15.7-gke.2 When I run in the cloud shell kubectl rollout restart I am getting the error: unknown command “restart” What might be the reason? update kubectl version resulted: v1.15.7-gke.2 kubectl version –client resulted: v1.15.7 {Major:”1″, Minor:”13+”, GitVersion:”v1.13.11-dispatcher”, GitCommit:”2e298c7e992f83f47af60cf4830b11c7370f6668″, GitTreeState:”clean”, BuildDate:”2019-09-19T22:20:12Z”, GoVersion:”go1.11.13″, Compiler:”gc”, Platform:”linux/amd64″} Thanks

can’t build or test kubernetes on docker or locally

I cloned the kubernetes repo and installed all the required packages to my mac but whenever I run build/run.sh make all or build/run.sh test I’m getting the following error: Call stack: 1: /go/src/k8s.io/kubernetes/hack/lib/golang.sh:857 kube::golang::build_binaries(…) 2: hack/make-rules/build.sh:27 main(…) Exiting with status 1 make: *** [Makefile:93: all] Error 1 !!! [0120 11:32:00] Call tree: !!! [0120 11:32:00]…