bsdperimeter/pfsense — pull request #277 by phil-davis (2012-12-14 03:27:28+00:00)
Title: Support different external, internal package name and service name #2603

Allow packages to define and internal_name and/or service_name that is different from the current external package name. e.g. Ipguard-dev is internally ipguard, Cron is cron, squid3 is squid etc.
This allows rc.stop_package and rc.start_package to match the correct *.sh file and/or service name to stop/start. It prevents duplication like this at boot and shutdown:
Starting package Cron...done.
Starting /usr/local/etc/rc.d/cron.sh...done.
Bootup complete

If the service_name is not defined, then it defaults to the internal_name
If the internal_name is not defined it defaults to the package name.
So this is backward-compatible with all existing packages.

I will submit some package pull requests also to define these names for packages that need them.