Get services to start up in Linux

Add Service with default runlevels:
# update-rc.d apache2 defaults

Add Service with custom runlevels:
# update-rc.d apache2 start 50 2 3 4 5 . stop 50 0 1 2 3 4 5 6 .

Remove Service:
# update-rc.d -f apache2 remove

More Infos you can get here:
http://www.debuntu.org/how-to-manage-services-with-update-rc.d

2 Comments »

admin on February 24th 2010 in General

Start Windows Services Remote and change start up type

Here a couple of quick and dirty examples:
sc \\REMOTEMACHINE query
sc \\REMOTEMACHINE start SERVICE_NAME
sc \\REMOTEMACHINE config SERVICE_NAME start= auto

2 Comments »

admin on February 12th 2010 in IT, Windows

Startup in Debian

I noticed that each time I restarted my os I didn’t get an IP and I had to start dhclient manually. So how do you get dhclient to start at startup?

Here are the steps you need to do:
1. vi etc/init.d/local

And put following code:

  1. #! /bin/bash
  2. dhclient

2. Make the file executable

  1. chmod +x /etc/init.d/local

3. Put it into the autostart

  1. update-rc.d local defaults 60

The smaller the number is the earlier the file will be executed.

No Comments »

admin on January 20th 2009 in Linux




Check out new movies online website. Download and buy movies now.
1