How can I configure a service to run at startup


If you’re like most Windows users, you have lots of great little utilities that run when you start Windows. While this works great for most apps, there are some that would be nice to start even before a user logs in to the PC. To do this, you’ll need to run the app as a Windows service.

Windows services are a special class of programs that are configured to launch and run in the background, usually without any sort of user interface and without needing a user to log in to the PC. Many gamers and power users know them as those things you used to disable to help speed up your system, though that’s really not necessary any more.

The primary advantage of running an app as a service is that you can have a program start before a user to log in. That can be particularly important with apps that provide important services you want to be available when you’re away from your computer.

A perfect example of this is Plex, a media server app that can stream local...

0 0

The more software you install on your computer, the longer it may seem to take to start up Windows. Many programs add themselves to the list of programs started when you boot your computer, and that list can get long.

Editor’s Note: Obviously our more geeky readers already know how to do this, but this article is meant for everybody else. Feel free to share it with your non-techie friends!

If you are using Windows 8 or Windows 10, scroll down.

Disabling Startup Programs in Windows 7, Vista, or XP

For some programs, it’s smart to have them start with Windows, such as anti-virus and firewall software. However, for most programs, starting them at boot-up just wastes resources and extends startup time. There is a tool installed with Windows, called MSConfig, that allows you to quickly and easily see what’s running at startup and disable the programs you prefer to run on our own after startup as needed. This tool is available and can be used to...

0 0

Services are often run with default settings — for example, a service might be disabled automatically at startup. You can use the Services snap-in to change the default settings for a service. This is useful if you are troubleshooting service failures or if you need to change the security account under which a service runs.

Membership in Account Operators or Domain Admins , Enterprise Admins , or equivalent, is the minimum required to complete this procedure. Review the details in "Additional considerations" in this topic.

Configuring how a service is started

To configure how a service is started using the Windows interface

Click Start , click in the Start Search box, type services.msc , and then press ENTER.

Optionally, export and save a list of the existing settings. To do this, right-click Services , select Export List , and save the settings list.

0 0

Using Supervisord¶

Add the following to your /etc/supervisord.conf file:

[program:syncthing] command = /path/to/syncthing/binary -no-browser -home="/home/some_user/.config/syncthing" directory = /home/some_user/ autorestart = True user = some_user environment = STNORESTART="1", HOME="/home/some_user"

Using systemd¶

systemd is a suite of system management daemons, libraries, and utilities designed as a central management and configuration platform for the Linux computer operating system. It also offers users the ability to manage services under the user’s control with a per-user systemd instance, enabling users to start, stop, enable, and disable their own units. Service files for systemd are provided by Syncthing and can be found in etc/linux-systemd.

You have two primary options: You can set up Syncthing as a system service, or a user service.

Running Syncthing as a system service ensures that Syncthing is run at startup even if the...

0 0

Here's my two-cents worth:

I know this is not a comprehensive list, but I've been Googling and experimenting for

quite a while and here's some of the results:

I won't even give all the usual cautions about goofing around in the Registry because if you're here trying to stop excess processes (which the average user doesn't even know or care about),

you should know what the ill-advised Registry change can do.

Can be auto-starting IF:

1) The program has a visible window.

2) Program is loaded during the Windows boot process:
Registry keys:

a) HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run,
b) HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Run,
c) HKCU\Software\Microsoft\Windows\CurrentVersion\Run,
d) HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders,
e) HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders,

0 0
Dec 30, 2009

so, where is the file determinaing what services start?I need to turn off freshclam, clamav-milter, and do I do that from console or can I just edit a .conf somewhere?

OpenSUSE Install :: Services Fail At Boot - Save To Turn Them Off? General :: Disable Unnecessary Startup Services? Server :: Set Up Alert Notification When Services Startup? Ubuntu :: Startup Services Not Starting (mysql / Apache2) Ubuntu Installation :: Upgrading To 9.10 Makes All Services FAIL On Startup? Ubuntu :: Turn Bluetooth On At Startup? Fedora :: Turn Off Remembering Startup Programs Ubuntu :: Can't Turn Off Remembered Startup Programs Slackware :: KDE4 Wicd Startup - Turn Off? General :: Turn Startup Chime Off On A IMac G5 Under Gentoo? Hardware :: Dual Monitors Nvidia 9500 GT - Turn On The 2nd Monitor After Startup ? OpenSUSE :: Dolphin Services - Get Mount / Umount Option Under Right Click Services Menu General :: How Can Vsftpd Services & Xinetd.d Services...
0 0

Services are programs that are configured to run in the background of a Windows computer weather or not there is a users that is logged on. They are essential part of windows and are essential to the operation of any windows computers. Without services computer could not perform automatic updates, run scheduled tasks or even connect to a file share. Therefore the ability to control Windows Services is a vita task for IT administrators.

Quite often disabling services on a computer is the best way to reduce the security surface of a computer or to improve performance by turning off un-used components of the OS. Inversely it is also very important to have the ability to turn on services to enable certain functionality or to ensure that certain services are not turned off.

Below I will go through the two ways you can control services in windows by using Group Policy each ways has its own advantages and/disadvantages but together you can pretty much control any system...

0 0

UPDATE: This tutorial will also work in Windows 8.1.

If you are a long time reader of this website, you might be aware of our exclusive service configuration guides which we have posted for previous Windows versions such as Windows XP, Vista and Windows 7. These guides help you in tweaking Windows built-in services startup type to stop them from running automatically in background so that you can improve your system performance and can make your Windows faster.

Following are our previous service configuration guides:

We always try to provide these guides as simple as possible so that all Windows users can understand and follow them. Following the tradition, today in this tutorial we are going to provide a similar guide for Microsoft's latest OS Windows 8.

This article will provide you a simple and easy to follow service configuration guide which will help you in making Windows 8 faster than before because less services will run in background.


0 0

This page covers:

Before you can start customizing projects and creating build configurations, you need to configure build agents.

Icon If you install TeamCity bundled with a Tomcat servlet container, or opt to install an agent for Windows, both the server and one build agent are installed on the same machine. This is not a recommended setup for production purposes because of security concerns and since the build procedure can slow down the responsiveness of the web UI and overall TeamCity server functioning. If you need more build agents, perform the procedure described below. If you need the agent to run a operating system different from the TeamCity server, perform the procedure described below. For production installations, it is recommended to adjust the Agent's JVM parameters to include the -server option.


Necessary OS and environment permissions

Before the installation, please review the Conflicting Software section. In case of...

0 0

lmgrd is a system daemon. The way to manage daemons and other system services in Fedora is using systemd service files. Create something like this in the file /etc/systemd/system/lmgrd.service :

[Unit] Description=License Manager Daemon Wants=something-else.service [Service] Type=simple ExecStart=/opt/flexnetserver/lmgrd -z -c lic.dat [Install]

Now, you can start, stop, and restart the service:

# systemctl start lmgrd # systemctl stop lmgrd # systemctl restart lmgrd

Or, enable it so it starts automatically on boot:

#systemctl enable lmgrd

You can adjust this file to reflect relationships on other services. To guide you,...

0 0

Updated: August 22, 2016

Applies To: SQL Server 2016

Each service in SQL Server represents a process or a set of processes to manage authentication of SQL Server operations with Windows. This topic describes the default configuration of services in this release of SQL Server, and configuration options for SQL Server services that you can set during and after SQL Server installation. This topic helps advanced users understand the details of the service accounts.

Most services and their properties can be configured by using SQL Server Configuration Manager. Here are the paths to the last four versions when Windows in installed on the C drive.

Depending on the components that you decide to install, SQL Server Setup installs the following services:

SQL Server Database Services - The service for the SQL Server relational Database Engine. The executable file is \MSSQL\Binn\sqlservr.exe.

SQL Server Agent - Executes jobs, monitors SQL Server,...

0 0

Hello World,

If you are following us, you probably remember that we wrote already a post about this topic (see Ubuntu 14.10 – Configure your sytem to have x11vnc running at startup). Since Ubuntu 15.04 is using systemd, the instructions found in the previous post are not applicable anymore. Some of our readers had issues after upgrading to Ubuntu 15.04. The x11VNC is not running at startup anymore.

This post will provide the necessary information to have x11vnc running at startup on ubuntu 15.04 when systemd is used.

At the end of this post, you should be able to connect via vnc to your Ubuntu machine even if there is a reboot and even if no user are logged into the machine. This configuration should display the login screen via vnc viewer client you are using.

We didn’t invent anything here. All the information provided here are based on the information made available at this location :...

0 0

You can use startup tasks to perform operations before a role starts. Operations that you might want to perform include installing a component, registering COM components, setting registry keys, or starting a long running process.


Startup tasks are not applicable to Virtual Machines, only to Cloud Service Web and Worker roles.

How startup tasks work

Startup tasks are actions that are taken before your roles begin and are defined in the ServiceDefinition.csdef file by using the Task element within the Startup element. Frequently startup tasks are batch files, but they can also be console applications, or batch files that start PowerShell scripts.

Environment variables pass information into a startup task, and local storage can be used to pass information out of a startup task. For example, an environment variable can specify the path to a program you want to install, and files can be written to local storage that can then be read later by your...

0 0

Newbie Cisco networking admins are typically taught the command copy running-config startup-config, or copy run start, to save their configurations to NVRAM (i.e. Flash memory). (This is in contrast to the older yet much much more convenient write memory command, or simply wr.) Students quickly realize that the corollary of copying the running configuration to the startup configuration is that the startup configuration can likewise be copied to the running configuration. However, this operation doesn't work quite like one might expect. copy run start generates a new configuration file and overwrites entirely the previous configuration file. copy start run, however, acts more like a copy & paste operation: the contents of the startup configuration are processed as though they were issued via the CLI. This means that running configuration lines that aren't in the startup configuration won't be overwritten or removed. The result is usually a messy, incomplete configuration.


0 0

Runlevel is a mode of operation in one of the computer operating systems that implement Unix System V-style initialization. Conventionally, seven runlevels exist, numbered from zero to six; though up to ten, from zero to nine[citation needed], may be used. S is sometimes used as a synonym for one of the levels. Only one runlevel is executed on startup; run levels are not executed one after another, i.e. either the runlevel 2, 3 or 4 is executed, not more of them sequentially or in any other order.

A runlevel defines the state of the machine after boot. Different runlevels are typically assigned (not necessarily in any particular order) to the single-user mode, multi-user mode without network services started, multi-user mode with network services started, system shutdown, and system reboot system states. The exact setup of these configurations varies between operating systems and Linux distributions. For example, runlevel 4 might be a multi-user GUI no-server configuration...

0 0

Important Note :

If you need to perform the same configuration on Ubuntu 15.04, you would follow the following instructions Ubuntu 15.04 – Configure your system to have x11vnc running at startup. The post hereafter applies to Ubuntu systems where the Upstart component is used. Since Ubuntu 15.04, Upstart has been replaced by systemd component

Hello World,

Today we will speak about Remote connection to an Ubuntu machine (or more generically a Linux Machine). Normally, we tend to use the xrdp solution to connect to a remote Ubuntu machine. Now, we had a request to have remote access configured on a Ubuntu Machine but using vnc technology.

As long as the machine is up and running and that a user is logged into the machine, vnc technology can be used to share and access the desktop remotely. We have been tasked to configure the Ubuntu machine in a way to ensure that the vnc server would start at boot time.

We didn’t invent anything here. We...

0 0


In this second part of the tutorial about starting Linux services automatically, we'll take a step back and explain init processes in more detail. You should gain a good understanding of how they control a daemon's start-up behavior.

In the first part of this tutorial series we shared some practical examples using MySQL for how to enable a Linux service to auto-start after a crash or reboot.

We saw how to do this from three different init modes: System V, Upstart, and systemd. Read the first tutorial for a refresher on which distributions use which init system by default.

In this tutorial, we will take a step back and explain why we ran the commands and edited the config files that we did. We'll start with the System V init daemon. We will also see why it was replaced over time with newer init modes.


To follow this tutorial, you will need the three DigitalOcean Droplets that you created before.


0 0

Lots of people have the tendency to install their applications using the default installation options. When they have to choose between a "Typical" installation and a "Custom" one, they always choose the first option. Typical installations are easy and require less input from the user but they also install lots of additional modules and settings that are not needed.

The most common problem caused by the use of typical installation options is the fact that you have a big chance of having a bloated system that loads lots of useless programs at every startup. Even if you have powerful hardware, your system will become slower and less responsive with each new program added to the startup list.

However, this problem can be solved easily. If you look carefully in the configuration options of your installed applications, you might find an option that enables you to remove them from the programs startup list. If you don't, all you need to do is to edit the startup list...

0 0