Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Mar 18, 2012 1:22 pm 
Offline
Senior Member

Joined: Fri Jan 20, 2012 11:19 am
Posts: 100
Hello,

I'm having a bit of a problem (more of an annoyance) in Ubuntu 10.04 where the ProFTPd service starts by itself every couple days. I have removed all startup scripts for ProFTPd although this shouldn't make a difference since the server isn't rebooted.

Does anyone have any suggestions or has experienced anything like this?

_________________
If all else fails, reboot...
PHP Tutorials and MySQL Tutorials


Top
   
 Post subject:
PostPosted: Sun Mar 18, 2012 4:13 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
What about
Code:
apt-get remove proftpd

If you need a service only very occasionally, it's a good idea to remove it and re-install it only when you need it. Thanks to apt-get, uninstalling and re-installing a package on Ubuntu is as easy as stopping and starting a service.

Also check your currently running processes. Sometimes, when you remove a package, running processes aren't properly stopped. Also, a program can hang around like a zombie even after the actual executable has been deleted.

If the restart happens on a regular basism it might also have something to do with the contents of the /etc/cron.d directory.


Top
   
 Post subject:
PostPosted: Sun Mar 18, 2012 4:59 pm 
Offline
Senior Member

Joined: Fri Jan 20, 2012 11:19 am
Posts: 100
So it wasn't cron that was the culprit, and I didn't see it in my list of running processes. At this point I don't care either. I used:

Quote:
apt-get remove proftpd


The result:

Quote:
apt-get remove proftpd
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting proftpd-basic instead of proftpd
The following packages were automatically installed and are no longer required:
db4.8-util libfile-copy-recursive-perl update-inetd openbsd-inetd
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
proftpd-basic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 2187kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 27060 files and directories currently installed.)
Removing proftpd-basic ...
* Stopping ftp server proftpd [ OK ]
Processing triggers for man-db ...
Processing triggers for ureadahead ...


And guess what, it was neither running or listening on a port at that point. I wonder what "Stopping ftp server" means... :?

Anyway, that's the end of that.

_________________
If all else fails, reboot...

PHP Tutorials and MySQL Tutorials


Top
   
 Post subject:
PostPosted: Sun Mar 18, 2012 9:34 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
nehalem wrote:
I wonder what "Stopping ftp server" means... :?

That's just apt-get trying to make sure that the ProFTPd service has actually stopped. As I said, services often continue to run even if you delete the executable from under their feet, so it's necessary to double-check.


Top
   
 Post subject:
PostPosted: Sun Mar 18, 2012 9:36 pm 
Offline
Senior Member

Joined: Fri Jan 20, 2012 11:19 am
Posts: 100
Thanks for the help and explanation.

_________________
If all else fails, reboot...

PHP Tutorials and MySQL Tutorials


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group