Parsoid Upstart

how to start service...
There are two possibilities to start the service manually and automatically.

Manually
Just type in the following code as undefined :

Automatically on start
The configuration for your service should exist in, this is how ubuntu knows which services are there. The extension of the configuration file is. We will create a  and symlink it to   by , this allows us to edit the configuration without sudo.

The service can be started on various events
 * 1) start on startup: Run the service on machine startup, this happens even before the filesystem and network is completely ready.
 * 2) start on runlevel [Levels]: Start the service on various linux run levels.
 * 3) start on stopped Service_Name: Run the serivce when the mentioned service has stopped.
 * 4) start on started Service_Name: Run the service when the mentioned service has started.

UPSTART
These commands are for the UBUNTU upstart service which is not maintained anymore it has been replaced by the init.d services DEBIAN alike.

Following are some of the commands to manage your service.
 * to check if your configuration is valid or not.
 * to start the service
 * to stop the service
 * to restart the service
 * to see the status your service, whether its stopped, running etc.
 * is used after you created a new configuration to reload the configurations
 * to see the list of all registered services
 * to see if your service is registered or not

Logs
All your service logs are stored at /var/log/upstart/service_name.log. If you see any issues in service start etc. then just go over the logs to figure out what could be the issue. This has the stdout from your service.

SYS-V ALIKE INIT SYSTEM.
The SYS-V alike init-system is the new DEBIAN way to regulate services. As mentioned the script is copied within i and made executable.

If you wish to add a new service to start when the machine boots you should add the necessary script to the directory. Many of the scripts already present in that directory will give you an example of the kind of things that you can do.

Here's a very simple script which is divided into two parts, code which always runs, and code which runs when called with "start" or "stop". https://debian-administration.org/article/28/Making_scripts_run_at_boot_time_with_Debian

Once you've saved your file into the correct location make sure that it's executable by running " ".

Then you need to add the appropriate symbolic links to cause the script to be executed when the system goes down, or comes up.

The simplest way of doing this is to use the Debian-specific command : If you wish to remove the script from the startup sequence in the future run: This will leave the script itself in place, just remove the links which cause it to be executed.

You can find more details of this command by running " ".

The init system helpers can be found in the apt package.