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
admin on February 24th 2010 in General
Here a couple of quick and dirty examples:
sc \\REMOTEMACHINE query
sc \\REMOTEMACHINE start SERVICE_NAME
sc \\REMOTEMACHINE config SERVICE_NAME start= auto
admin on February 12th 2010 in IT, Windows
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:
2. Make the file executable
-
chmod +x /etc/init.d/local
3. Put it into the autostart
-
update-rc.d local defaults 60
The smaller the number is the earlier the file will be executed.
admin on January 20th 2009 in Linux