Command to list services that start on startup?

1

I've installed mongodb v3.4. This starts up on boot.

So I'm wondering, how to I find out what is starting this up (and how to disable it from starting on boot)?

The following did not work:

How can I stop mongodb from starting on system boot (old)

Command to list services that start on startup? (old)

As far as I now, services are automatically enabled in Ubuntu, so when you install something like Apache it will be started at boot.

Find some information

To find out all services that have been run at startup:

systemctl list-units --type service

this will show all services that has been loaded at boot and are active now. If you want to get a list of all services no matter they are active or not:

systemctl list-units --type service --all

Another thing you can do is to run:

systemctl list-dependencies --type service

then hit / and search for mongodb see what service/target depends on it and runs it.

Also you...

0 0
2

In this article we will introduce some command that we can be use on showing startup program on the linux Operating system.

ie: Ubuntu/Centos

Command 1:

This command are be able working on Ubuntu.

This is a shell command to list the contents of /etc/init

just simply type

initctl list

and you will get some process are starting, process id, and the status of the process. ie: start/stop

when you run the command , if you found out below error.

initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

We can fix it by below command:

apt-get install upstart update-initramfs -u

and in the end reboot your machines and test the command again, it could be working fine.

If you wish to only show all the upstart services can be done by below command:

initctl list | awk '{ print $1 }' | xargs -n1 initctl show-config

Command 2:

For SystemV

We can use below...

0 0
3

Stops and then starts one or more services.

Syntax

Restart-Service [-InputObject] [-Force] [-PassThru] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] Restart-Service [-Name] [-Force] [-PassThru] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] [] Restart-Service -DisplayName [-Force] [-PassThru] [-Include ] [-Exclude ] [-WhatIf] [-Confirm] []

Description

The Restart-Service cmdlet sends a stop message and then a start message to the Windows Service Controller for a specified service. If a service was already stopped, it is started without notifying you of an error. You can specify the services by their service names or display names, or you can use the InputObject parameter to pass an object that represents each service that you want to restart.

Examples

Example 1: Restart a service on the local computer

PS C:\> Restart-Service -Name winmgmt

This...

0 0
4

Ubuntu uses Upstart instead of the traditional init system. Upstart is stronger than init, but it's a little bit more complicated than init.

Upstart, in contrast, is event based. An "event" can be something like "booting" ... or it can be a lot more specific, like "the network is ready to use now". You can specify which scripts depend on which events. Anything that isn't waiting for an event can run whenever there's CPU available.

This event-based system has another advantage: you can theoretically use it even after the system is up and running. Upstart is eventually slated to take over tasks such as or plugging in external devices like thumb drives (currently handled by udev and hal), or running programs at specific times (currently handled by cron).

As you should know now, a dead daemon (that doesn't run in startup) may be alive and starts because of an event.

Ubuntu have both /etc/init, for Upstart, and /etc/init.d, for the old SysV files. Some of the...

0 0
5

Linux chkconfig is a simple command line utility for manage and maintain /etc/rc[0-6].d directory hierarchy. This command is normally used to setup, view or change different services which are configured at startup. Through this command we can control what services start at the time of server startup and in which order. Chkconfig command is having five distinct functions: adding a new service, removing of services, listing the current service startup information, changing the startup information of any service and checking the startup state of a particular service. When we run chkconfig without giving any options, it will display usage information. If we provide only service name then it will check if that service is configured to be started in current run level.

If we specify on or off option with the service name, chkconfig command changes the startup information for that particular service. This on and off flag cause any services to be started or stopped. By default, on...

0 0
6

It is quite helpful to know what applications are running at startup to help troubleshoot any slowdowns in system performance or to help track down malware infections. By using the Windows Instrumentation command-line interface (WMIC), you can easily generate a list of all applications set to run at startup as well as the location of each application. You can even generate a file to print out the information or for later review.


1. Open a command prompt.

2. Execute the following command:
wmic startup get caption,command

A list of the applications that run at startup will be displayed along with the command that executes the application. Check the command listings for the path to the application.

If you want to generate a text or HTM file for printing, execute the following:

to generate a textfile:
/output:d:\Startup.htm startup get caption,command

to generate a HTM file:
/output:d:\Startup.htm startup get...

0 0
7

SC is one of the Windows XP Professional command-line tools.
SC or the executable file for this command line program sc.exe can be used to retrieve and set information about services running on the Windows computer.
SC command line tool communicates with the NT Service Controller and installed services on the computer.
It is possible to stop or start a service, and change its current status by using the SC.exe command line utility for XP users.

I used the SC.exe to stop or start a list of services by preparing a batch file which includes a series of SC.exe commands for stopping/starting the services I want.
You can also control the status of these services running on your computer by using the Services Microsoft Management Console (MMC) which is in the Administrative Tools menu.
You can set the Startup Type and Status properties in the Services Management Console.

But my requirement is when I concantrate on coding using...

0 0
8

Chkconfig command is used to setup, view, or change services that are configured to start automatically during the system startup.

This article contains 7 practical examples that explains how to use the chkconfig command.

1. Check Service Startup status from Shell Script

When you execute chkconfig command only with the service name, it returns true if the service is configured for startup. The following code snippet shows how to check whether a service is configured for startup or not from a shell script.

# vi check.sh chkconfig network && echo "Network service is configured" chkconfig junk && echo "Junk service is configured" # ./check.sh Network service is configured

You can also specifically check whether it is configured for a particular run level or not.

# vi check1.sh chkconfig network --level 3 && echo "Network service is configured for level 3" chkconfig network --level 1 && echo "Network service is configured for level 1" #...
0 0
9

Have you ever had 67 emails about services on your servers being up and down from your monitoring solution? It’s not a good feeling and those emails are only about the ones that monitoring is setup for. What other services could be stopped that aren’t being monitored? Wouldn’t you like a quick and easy way to check whether or not all of the services that are set to start automatically are actually running?

My first thought: Use the Get-Service cmdlet. Unfortunately it doesn’t have a parameter for the Startup Type:

It’s a little more difficult, but what about using WMI via the Get-WMIObject cmdlet? Most of the WMI classes I’ve found useful start with win32 and I’m looking for a service class:

What properties are available when using the WMI Win32_Service class? This looks promising because there’s a StartMode parameter. The only problem is that the BITS service shown in the following image is set to Delayed Start and the StartMode is...

0 0
10

See Also

WhatInStartup - Disable/enable/delete programs running at Windows startup. DriverView - List all device drivers currently loaded on your Windows NK2Edit - Edit, merge and fix the AutoComplete files (.NK2) of Microsoft Outlook.

Description

ServiWin utility displays the list of installed drivers and services on your system. For some of them, additional useful information is displayed: file description, version, product name, company that created the driver file, and more.
In addition, ServiWin allows you to easily stop, start, restart, pause, and continue service or driver, change the startup type of service or driver (automatic, manual, disabled, boot or system), save the list of services and drivers to file, or view HTML report of installed services/drivers in your default browser.

Search for other utilities in NirSoft

Versions History

Version 1.71: Added option to export services/drivers list of external drive from...
0 0