pfSense English Support > Packages

Starting daemons without writing a package

(1/2) > >>

molar:
Hello

I've searched google, newsgroups, the mailing lists and these fine forums but have found no mention of any way to start freebsd daemons at bootup without writing a package?

Is there a way to hack a service to startup without writing a full blown package and front end for webConfigurator?

I.e. the equivalent of servicename_enable="YES" in rc.conf.

Thanks. :)

hoba:
http://faq.pfsense.com/index.php?action=artikel&cat=10&id=38&artlang=en&highlight=hidden (search for the shellcommand items).

rsw686:
You could just make an rc file and stick it in /usr/local/etc/rc.d/ follow the format for an existing one.

molar:
Thanks to you both. I will let you know how I get on.

Justinw:
If you installed additional services using the pkg_add command, it usually generates its own rc.d file in /usr/local/etc/rc.d Just vi the file and change the enable:NO to YES and rename it to a shell script (.sh extension).  That is how I have been doing it anyways, I'm guessing someone is about to tell me that its a bad idea for one reason or another though...

Navigation

[0] Message Index

[#] Next page

Go to full version