อ้างอิง
http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html
Debian Linux has its own script to enable and disable services across runlevels. It is called update-rc.d. Going by the above example, you can enable apache webserver as follows:
# update-rc.d apache2 defaults
… this will enable the apache webserver to start in the default run levels of 2,3,4 and 5. Of course, you can do it explicitly by giving the run levels instead of the “defaults” keyword as follows:
# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .
The above command modifies the sym-links in the respective /etc/rcX.d directories to start or stop the service in the destined runlevels. Here X stands for a value of 0 to 6 depending on the runlevel. One thing to note here is the dot (.) which is used to terminate the set which is important. Also 20 and 80 are the sequence codes which decides in what order of precedence the scripts in the /etc/init.d/ directory should be started or stopped.
And to disable the service in all the run levels, you execute the command:
# update-rc.d -f apache2 remove
Here -f option which stands for force is mandatory.
But if you want to enable the service only in runlevel 5, you do this instead:
# update-rc.d apache2 start 20 5 . stop 80 0 1 2 3 4 6 .
Excerpt
[…]your advertising and marketing portfolio. But not all case studies are created equal. So if some of your efforts have generated less than stellar outcomes, chances are you’ll[…]
Excerpt
[…]website should have nice colors, visible results, and a catchy internet tackle with a purpose to be successful. Although these things are necessary, they[…]
Excerpt
[…]Choosing the right phrase is a psychological problem that any advertising or communication specialist should understand, if even on a fundamental level.[…]
Excerpt
[…]promoting a service or product, the usage of storytelling can be thoroughly effective. Lead your viewers by instance and influence[…]
Excerpt
[…]calling is a terrifying prospect while you start searching for freelance content material writing jobs, but it can be a good way to seek out work. Here is an […]
Excerpt
[…]advertising a service or product, using storytelling will be thoroughly effective. Lead your audience via example and influence[…]
Excerpt
[…]calling is a terrifying prospect if you start in search of freelance content material writing jobs, however it can be a great way to find work. Right here is an […]
Excerpt
[…]Choosing the right phrase is a psychological problem that any advertising and marketing or communication specialist should perceive, if even on a basic level.[…]
Excerpt
[…]Once I first bought into Web Advertising the most important wrestle I had was writing sales copy that converted visitors into customers. I was lucky if I had[…]
Excerpt
[…]you are a copywriter, advertising govt or entrepreneur, there will at all times be a possibility the place you must use visuals to market your[…]
Excerpt
[…]your advertising portfolio. However not all case research are created equal. So if a few of your efforts have generated lower than stellar results, chances are you’ll[…]
Excerpt
[…]calling is a terrifying prospect once you begin looking for freelance content writing jobs, but it may be an effective way to search out work. Here is an […]
Excerpt
[…]Choosing the proper phrase is a psychological challenge that any marketing or communication specialist should understand, if even on a primary level.[…]
Excerpt
[…]these copywriters who are now not proper) suggest that that is the key function of EVERY sentence in a promotion. It is not. It is the secondary[…]
Excerpt
[…]those copywriters who are now not proper) recommend that this is the key function of EVERY sentence in a promotion. It’s not. It is the secondary[…]
Add A Comment