Re: [pfSense Support] Command in Crontab Missing
On Fri, Jan 29, 2010 at 2:36 AM, Indrajaya Pitra Perdana wrote: > I try to insert several command in the /etc/crontab file, but after > sometimes (around 30 days) the command that i manually insert is gone, is > there something that made the crontab reset as it was before ? > i use 1.2.2 version , thx before Pretty much any file you manually edit will go away on reboot. Any configuration you want to persist must be done via the GUI. - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] OpenBGPd package on 1.2.3-release
Hello, On Fri, Jan 29, 2010 at 00:06, Scott Ullrich wrote: > On Thu, Jan 28, 2010 at 10:57 AM, Aarno Aukia wrote: >> bgpd is started twice when booting on 1.2.3-release with the newest >> package. I suspect once from /usr/local/pkg/openbgpd.inc and once from >> /usr/local/etc/rc.d/bgpd.sh ? When commenting out the exec("bgpd") in >> /usr/local/pkg/openbgpd.inc it is only started once. Should the check >> is_openbgpd_running() also be added to /usr/local/etc/rc.d/bgpd.sh or >> is there a more favorable way ? > > Sounds reasonable. That would be: $ diff -urNp openbgpd.inc.old openbgpd.inc --- openbgpd.inc.old2010-01-29 16:53:08.0 +0100 +++ openbgpd.inc2010-01-29 17:00:55.0 +0100 @@ -153,7 +153,11 @@ function openbgpd_install_conf() { $fd = fopen("/usr/local/etc/rc.d/bgpd.sh","w"); fwrite($fd, "#!/bin/sh\n\n"); fwrite($fd, "# This file was created by the pfSense package manager. Do not edit!\n\n"); - fwrite($fd, "/usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf\n"); + fwrite($fd, "NUMBGPD=`ps auxw | grep bgpd | grep parent | grep -v grep | wc -l | awk '{print \$1}'`\n"); + fwrite($fd, "#echo \$NUMBGPD\n"); + fwrite($fd, "if [ \$NUMBGPD -lt 0 ] ; then\n"); + fwrite($fd, " /usr/local/sbin/bgpd -f /usr/local/etc/bgpd.conf\n"); + fwrite($fd, "fi\n"); fclose($fd); exec("chmod a+rx /usr/local/etc/rc.d/bgpd.sh"); exec("chmod a-rw /usr/local/etc/bgpd.conf"); Thanks for committing, Aarno -- Aarno Aukia Atrila GmbH Switzerland - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
Re: [pfSense Support] Command in Crontab Missing
Hello, On Fri, Jan 29, 2010 at 16:55, Vick Khera wrote: > On Fri, Jan 29, 2010 at 2:36 AM, Indrajaya Pitra Perdana > wrote: > >> I try to insert several command in the /etc/crontab file, but after >> sometimes (around 30 days) the command that i manually insert is gone, is >> there something that made the crontab reset as it was before ? >> i use 1.2.2 version , thx before > > > Pretty much any file you manually edit will go away on reboot. Any > configuration you want to persist must be done via the GUI. The more helpful suggestion IMHO: use the "Cron" package to manage the crontab entries in the GUI Regards, Aarno -- Aarno Aukia Atrila GmbH Switzerland - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org
[pfSense Support] VMWARE test for Pfsense
Hi, I would like to ask how to setup Pfsense on a Vmware workstation on a windows host, i have tested it but i cant access the LAN ip of the pfsense web configurator, please help me on this. Thanks -- Ruben
Re: [pfSense Support] VMWARE test for Pfsense
Hi, I would like to ask how to setup Pfsense on a Vmware workstation on a windows host, i have tested it but i cant access the LAN ip of the pfsense web configurator, please help me on this. Thanks -- Ruben Ruben, What I mostly do to test pfsense in a vmware (or virtualbox) environment, is setup a workstation as well in the vm solution. I then assign two NICS to the pfsense VM. 1 NIC will be bridged to assign as "WAN". The other NIC is being setup as "Host-only". The workstation (the VM one, not your physical one) on the other hand is being given one NIC, and "Host-only". That ought to solve your problem... and easy :) hope this helps! - To unsubscribe, e-mail: support-unsubscr...@pfsense.com For additional commands, e-mail: support-h...@pfsense.com Commercial support available - https://portal.pfsense.org