Disable ProFTP and BIND on Boot

4 posts / 0 new
Last post
#1 Tue, 04/19/2011 - 11:27
hangingclowns

Disable ProFTP and BIND on Boot

Is there an easy way to uninstall some of this stuff I don't want? I already turned off ProFTP and Bind DNS server in the features section with checking both check boxes (one on the left and the default box), but when I try to turn it from from booting and turning off the process in general, I get this:

Executing /etc/init.d/bind9 stop ..

  • Stopping domain name service... bind9 rndc: connect failed: 127.0.0.1#953: connection refused ...done. Executing /etc/init.d/proftpd stop ..
  • Stopping ftp server proftpd ...done. Disabling action bind9 at boot time. Disabling action proftpd at boot time.

But it is still showing both processes will continue to boot up on restart. how can I stop this from happening? I'm guessing the the connection refused is normal if the process is not running but it seems like proftp is constantly running?

Tue, 04/19/2011 - 13:13
andreychek

Are you by chance using Ubuntu? There's a bug in Webmin that prevents it from properly interacting with Ubuntu "upstart" jobs, which is what's responsible for launching jobs at bootup.

The next Ubuntu version should fix that... in the meantime, you might just need to manually stop processes you don't want to see at bootup :-)

-Eric

Tue, 04/19/2011 - 17:08
Locutus

BIND and ProFTPD do not use Upstart, they use the "oldschool" method.

@hangingclowns: In case of Ubuntu (maybe other systems too) you can verify if the services are correctly disabled at boot by checking the directory /etc/rc5.d. If you don't see any symlinks there with "bind9" or "proftp" in the name, they're disabled.

If they are still enabled, you can turn them off with

insserv -r bind9
insserv -r proftpd
Tue, 04/19/2011 - 18:25
hangingclowns

Thanks for the prompt replies. I am using Ubuntu. I'll go ahead and do it that way. I also find it strange that is says SSH is not running, but obviously it is since I am able to login through ssh. Is there a list of bugs somewhere?

Also, tried the commands you specified and it is complaining:

user@server:/etc/rc5.d$ insserv -r bind9 The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'S99mysql' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'dmesg' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'procps' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hwclock-save' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udevmonitor' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'cron' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'module-init-tools' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udevtrigger' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-splash' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'network-interface-security' missing LSB tags and overrides insserv: warning: current start runlevel(s) (0 6) of script umountnfs.sh' overwrites defaults (empty). The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hostname' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'mysql' missing LSB tags and overrides insserv: warning: current start runlevel(s) (0 6) of scriptnetworking' overwrites defaults (empty). The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'console-setup' missing LSB tags and overrides insserv: warning: current start runlevel(s) (0 6) of script umountroot' overwrites defaults (empty). The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-log' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'plymouth-stop' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'hwclock' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udev' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'udev-finish' missing LSB tags and overrides insserv: warning: current start runlevel(s) (0 6) of scriptsendsigs' overwrites defaults (empty). insserv: warning: current start runlevel(s) (6) of script reboot' overwrites defaults (empty). The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'network-interface' missing LSB tags and overrides The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'rsyslog' missing LSB tags and overrides insserv: warning: current start runlevel(s) (0) of scripthalt' overwrites defaults (empty). insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty). The script you are attempting to invoke has been converted to an Upstart job, but lsb-header is not supported for Upstart jobs. insserv: warning: script 'dbus' missing LSB tags and overrides insserv: There is a loop between service rsyslog and apache2 if stopped insserv: loop involving service apache2 at depth 3 insserv: loop involving service rsyslog at depth 2 insserv: loop involving service udev at depth 1 insserv: There is a loop between service rsyslog and apache2 if stopped insserv: loop involving service hwclock at depth 2 insserv: exiting now without changing boot order!

It does say I should do this in the README:

The scripts in this directory are executed each time the system enters this runlevel.

The scripts are all symbolic links whose targets are located in /etc/init.d/ .

To disable a service in this runlevel, rename its script in this directory so that the new name begins with a 'K' and a two-digit number, and run 'update-rc.d script defaults' to reorder the scripts according to dependencies. A warning about the current runlevels being enabled not matching the LSB header in the init.d script will be printed. To re-enable the service, rename the script back to its original name beginning with 'S' and run update-rc.d again.

For a more information see /etc/init.d/README.

So sounds like I have to change these names with starting to begin with a K then 2 arbitrary numbers?

Went ahead and tried this and just changed the S to K and kept the number the same, did this in the command line:

user@server:/etc/init.d$ update-rc.d proftpd defaults System start/stop links for /etc/init.d/proftpd already exist. Died at /usr/sbin/update-rc.d line 57.

What's this? I'm guessing it tried to stop the process? My main question is, did it disable it at boot up or not?

Topic locked