Proftpd error when trying to turn it on

After turning off virtualmin dav plugin I press the configuration button and get:
Mail server Postfix is installed and configured.

Apache is installed.

Webalizer is installed.

Apache is configured to host SSL websites.

MySQL is installed and running.

ProFTPd is installed.

Logrotate is installed.

SpamAssassin and Procmail are installed and configured for use.

ClamAV is installed and running.

The System and Server Status module is installed and checking on schedule.

Plugin AWstats reporting is installed OK.

Plugin Mailman is installed OK.

Plugin Protected web directories is installed OK.

Using network interface eth0 for virtual IPs.

Both user and group quotas are enabled for home and email directories.

All seenms fine, I scroll down and find that proftpd has a big red x next to it, I press the buton to start it up and get this error:;

Failed to start service :

/etc/init.d/proftpd: line 19: /etc/rc.d/init.d/functions: No such file or directory

Anyclues how to fix it? It used to work, it never turned on when the server restarted but it always turned on when the button was pressed.

Status: 
Closed (fixed)