In order to set up a cluster where the master and worker nodes communicate with internal IP addresses (instead of public ones), execute following steps. When running init, you must make sure you specify an internal IP for the API server’s bind address, like so: kubeadm init -apiserver-advertise-address=. Quick overiview how to initialize hard disk, how to setup time e date, how to change network parameters from dhcp to fixed ip, how to add users! NVR used in video: HIKVISION DS-7604NI-EI/4P/A.
Active2 years ago
I am trying to install an init.d script, to run celery for scheduling tasks.Here is the steps I followed:
- copied the file celeryd and pasted it in folder /etc/init.d/
- created a configuration file celeryd in folder /etc/default/
now when I tried to start it by
sudo /etc/init.d/celeryd start
, it throws error sudo: /etc/init.d/celeryd: command not found
I googled about how to install init.d, I got this SO-question.
it says to issue a
uname -a
and when I does I get this:and also it says use utils like
insserv
to enable init.d scriptso tried:insserv /etc/init.d/celeryd
but it throws error insserv: command not found
so I tried to install insserv
sudo apt-get install insserv
. but it say aleady installed:So how to install init.d script?? Any help will be appreciated.
update1:
when I tried:
it reveal some
errors
. may be that is why the service won’t start.update2:
I cleared all the errors when I run
$ sh -x /etc/init.d/celeryd start
but still sudo /etc/init.d/celeryd start
throws command not found
errorCommunity♦
suhailvssuhailvs77311 gold badge99 silver badges1717 bronze badges
4 Answers
Your
celeryd
script is probably not executable, that's why sudo /etc/init.d/celeryd
is returning command not found
. So, you need to first make it executable.To do so, run the following commands:
The first line changes the permissions to
-rwxr-xr-x
, and the second line ensures that the owner and group owner of the file is root
.Once this is done, I assume you will need to use
Alaa AliAlaa Alisudo /etc/init.d/celeryd start
to start the daemon.23.7k99 gold badges7373 silver badges9595 bronze badges
When you copy the script into place, don't forget to make it executable and owned by root:
Once you have installed that, you can set it to start automatically on boot with:
Seth♦37.6k2828 gold badges121121 silver badges179179 bronze badges
David PurdueDavid Purdue
If you get the
command not found
error when you run insserv
, you may fix it by running the following command:Then see
insserv -h
or man insserv
for help.Also you can try with:
Source: https://askubuntu.com/a/334043/147044
Community♦
Radu RădeanuRadu Rădeanu127k3636 gold badges269269 silver badges335335 bronze badges
This is command sequence to autostart your daemon at boot time:
Oleg Bondar'Oleg Bondar'