In Linux daemons are started using rc scripts. A sample of such a script is located in the service-tools.zip archive, in the linux-init.d folder – a file named cargador.<general|debian> - depending on your Linux OS type.

In the launch script you should specify location of executable file on your server and probably change username and group. By default, script contains following values:

CARGA_SERVE=/usr/local/bin/cargador
CARGA_USER=cargador
CARGA_GROUP=cargador

After being edited, the file should be placed into the corresponding folder – usually it is /etc/init.d.

Then you have to create links to the script in the structure of rc folders. Locations and formats of these links vary from one Linux distribution to another. For example, for a Debian-like Linux (e.g., Ubuntu) use the following command:

update-rc.d cargador.debian defaults

<< Previous Next >>

Did this answer your question?