LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-23-2016, 02:35 AM   #1
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Rep: Reputation: Disabled
How to ban the program start automatically on boot?


The 53 port will be used by program named.
tcp 0 0 110.110.110.110:53 0.0.0.0:* LISTEN 845/named
tcp 0 0 192.168.22.1:53 0.0.0.0:* LISTEN 845/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 845/named
Everytime the program 'named' start automatically on boot.
How to ban it start automatically on boot?

chkconfig named off
named: unknown service
 
Old 07-23-2016, 04:01 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Quote:
Originally Posted by luofeiyu View Post
Code:
chkconfig named off
This is not the correct invocation: see 'chkconfig --list' for service names and 'man chkconfig' ("--level").
*If you don't need to provide DNS then best uninstall BIND and only reinstall name server software if absolutely necessary.
 
Old 07-23-2016, 04:28 AM   #3
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Original Poster
Rep: Reputation: Disabled
root@hwy:/home/debian8# chkconfig --list
Code:
acpid                     0:off  1:off  2:on   3:on   4:on   5:on   6:off
alsa-utils                0:off  1:off  2:off  3:off  4:off  5:off  6:off  S:on 
amule-daemon              0:off  1:off  2:on   3:on   4:on   5:on   6:off
anacron                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
apache2                   0:off  1:off  2:on   3:on   4:on   5:on   6:off
atd                       0:off  1:off  2:on   3:on   4:on   5:on   6:off
avahi-daemon              0:off  1:off  2:on   3:on   4:on   5:on   6:off
bind9                     0:off  1:off  2:off  3:off  4:off  5:off  6:off
I have set `chkconfig bind9 off`,why program named still start automatically on boot?
 
Old 07-23-2016, 07:06 AM   #4
Hasek39
Member
 
Registered: Jul 2015
Location: Moscow, Russia
Distribution: Slackware
Posts: 93

Rep: Reputation: Disabled
As there is systemd as default initialization system in Debian now, I think that the correct way to remove any service or program from autostart is to use systemctl
Code:
# systemctl disable service_name
 
Old 07-23-2016, 10:02 AM   #5
luofeiyu
Member
 
Registered: Aug 2015
Posts: 138

Original Poster
Rep: Reputation: Disabled
It is no use
Code:
systemctl disable named
systemctl disable named was performed ,named was still executed after reboot.
netstat -anlp |grep 53
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 694/named
tcp 0 0 114.114.114.4:53 0.0.0.0:* LISTEN 694/named
tcp 0 0 192.168.22.1:53 0.0.0.0:* LISTEN 694/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 694/named

Code:
systemctl disable bind9
It works fine .

Last edited by luofeiyu; 07-23-2016 at 10:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
Getting My Program To Start Up Automatically hitmen Linux - Newbie 1 06-14-2011 11:34 PM
Automatically Start A Program pafinator11 Linux - Software 5 06-09-2006 04:10 PM
How to set a program to automatically start wfernley Linux - Newbie 8 04-16-2005 02:20 PM
How do I start a program automatically when I boot up? bad_andy Mandriva 2 11-27-2004 09:15 PM


All times are GMT -5. The time now is 03:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration