starting daemons at server start

2004-01-04 Thread Micke P

Hi,

There are a couple of things that I'm struggling with
unsuccessfully. :-(  One of them is figuring out how
to get daemons to start up when the server starts, or
restarts, without having to start them manually. It
may be clearly defined in the handbook, but I am inept
enough to not see it. This is a configuration in the
inetd?

Thanks,
Micke

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


SAMBA setup

2004-01-04 Thread Micke P

Hi,

I've configured SAMBA as well as I could, but am still
missing how to get this all set up. Could someone send
their config file and drive configuration settings, or
whatever? Or just contact me (with a *lot* of
patience).

Thanks,
Micke

__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: starting daemons at server start

2004-01-04 Thread Micke P

Right! Ok, it's definitely not inetd that I need. I'm
thinking primarily of starting apache and a dynamic ip
updater automatically at startup.

Micke


--- fbsd_user [EMAIL PROTECTED] wrote:
 Maybe you just don't understand what you are seeing.
 Inetd is the
 Super server. Every thing you uncomment in the
 inetd.conf file is an
 server of it own right. But instead of an daemon
 running for telnet
 or FTP all the time. Inetd runs and listens on the
 ports where those
 services would be listings and when inetd sees an
 request on the
 specified port it automatically launches the server
 for that
 service. With inetd running , ps ax only shows inetd
 running, but
 start an telnet session to your box and you will see
 that inetd has
 spawned an telnet server session. When your telnet
 users leaves the
 session, the telnet server terminates. Inetd is used
 to conserve
 resources.


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sharing files with windows systems was Re: SAMBA setup

2004-01-04 Thread Micke P

As a stop gap, I'd even be glad for info on seting up
ftp'ing with the windows machines on my LAN. Right now
I am ftp'ing to and from my ISP webspace.

Thanks,
Micke


 I've configured SAMBA as well as I could, but am
still
 missing how to get this all set up. Could someone
send
 their config file and drive configuration settings,
or
 whatever? Or just contact me (with a *lot* of
 patience).



__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: starting daemons at server start

2004-01-04 Thread Micke P

If there is something that is done automatically, I
swear my karma is that it won't be done! I did do a
port apache install. And right, I don't remember that
being asked. I'm assuming there's an easier way to get
this set up besides redoing the install.

Examples of this script(working :-))?

Micke


--- fbsd_user [EMAIL PROTECTED] wrote:
 If it's apache you want to auto start then you
 missed the
 instruction during the
 install of apache that tells you to put it's start
 script into
 directory /usr/local/etc/rc.d/


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: starting daemons at server start

2004-01-04 Thread Micke P

Hi Subhro :-),

Good information. After checking, I didn't have the
local_startup line in my /etc/rc.conf file. 

This didn't work on restarting just now, but I added
the line pointing to the rc.d apache dir where I had
added the file apache.sh earlier (below). Still had to
start apache by hand. I don't know if the script is
correct, because there was no example script and I
changed the script from another daemon. If so, I'm
still missing something.

Micke


#!/bin/sh
echo -n ' Apache'

case $1 in
start)
   /usr/local/apache/bin/apachectl start
   ;;
stop)
   /usr/local/apache/bin/apachectl stop
   ;;
*)
   echo Usage: 'basename $0' (start|stop) 2
   exit 64
   ;;
esac

exit 0



--- Subhro [EMAIL PROTECTED] wrote:
 Hello Micke,
 Well there are quite a few ways in which you can
 start a daemon
 automatically. I would brief them for you. The
 most common daemons like
 sshd, apmd check the /etc/rc.conf for start
 commands. So if you want to
 start sshd at startup just put a line
 sshd_enable=YES in /etc/rc.conf and
 you will be back in business. For a list of all the
 daemons which can be
 started from rc.conf, refer to
 /etc/defaults/rc.conf. But DON'T modify that
 file. Instead copy that file to /etc and change it
 there if you don't have
 rc.conf in /etc initially. /etc/rc.conf overrides
 anything in
 /etc/defaults/rc.conf.
 
 The next common procedure of starting daemons in
 from within the inetd
 superserver.Inetd works as: it does not start the
 daemon initially. Instead
 it starts listening on the port which the daemon is
 supposed to listen on.
 For example if you are planning to start telnetd
 from inetd, then after the
 system startup, inetd will listen on port 23 and
 start up telnetd only when
 it senses someone knocking on port 23. In this way
 you can save on system
 resources by not starting the services unless you
 need them. For the inetd
 to waork you need to include a like
 inetd_enable=YES in /etc/rc.conf.
 
 However inetd has its cons as well. If you have a
 very busy webserver (for
 instance) and plan to start httpd (the webserver
 daemon) from inetd, then
 the overhead will be very high as inetd spawns a
 separate process for each
 incoming request. So sys-admins consider running
 daemons as staanalone. When
 you install some daemon like apache (for example)
 then you will find a
 startup file in /usr/local/etc/rc.d/. Most likely it
 would be names as
 daemon_name.conf.sample. Change the name to
 daemon_name.conf and change the
 permissions to 755 while you are logged in as root.
 At every boot the script
 will be called with a start argument which will
 start the service and at
 every shutdown it will be called with a stop
 argument. I would not give you
 a prize if you manually call the script with start,
 stop and restart
 arguments :-).
 
 The last but not the least. You can also start
 services from within crontab.
 But that's too cumbersome. Hence I don't like it.
 Refer to this page if you
 want to know how.
 

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-start
 ing-services.html
 
 I hope I have answered some of your queries. Do let
 us know if you need some
 more help.
 
  Remember FreeBSD unlike windows can dare to say
 Power to Serve :-)
 
 Regards
 Subhro
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Micke P
 Sent: Monday, January 05, 2004 12:05 AM
 To: [EMAIL PROTECTED]
 Subject: starting daemons at server start
 
 
 Hi,
 
 There are a couple of things that I'm struggling
 with
 unsuccessfully. :-(  One of them is figuring out how
 to get daemons to start up when the server starts,
 or
 restarts, without having to start them manually. It
 may be clearly defined in the handbook, but I am
 inept
 enough to not see it. This is a configuration in the
 inetd?
 
 Thanks,
 Micke
 
 __
 Do you Yahoo!?
 Protect your identity with Yahoo! Mail AddressGuard
 http://antispam.yahoo.com/whatsnewfree
 ___
 [EMAIL PROTECTED] mailing list

http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 
 
 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: starting daemons at server start

2004-01-04 Thread Micke P

Woohoo! I changed the permissions on my apache shell
file and presto- apache now starts on rebooting!

Thanks very very much all of you for your very good
help. That's one less thing to be frazzled about.

Micke


--- Marty Landman [EMAIL PROTECTED] wrote:
 At 02:21 PM 1/4/2004, Micke P wrote:
 
 I'm thinking primarily of starting apache and a
 dynamic ip updater 
 automatically at startup.
 
 Micke, here's a sample from my machine that may
 help:
 
 # ls -alh /usr/local/etc/rc.d
 total 20
 drwxr-xr-x  2 root  wheel  512B Dec 30 16:58 .
 drwxr-xr-x  9 root  wheel  512B Dec  7 16:13 ..
 -rwxr-x---  1 root  wheel  181B Dec 30 16:55
 000.mysql-client.sh
 -rwxr-xr--  1 root  wheel  144B Nov 12 16:18
 001.landns.root.sh
 -r-xr-xr--  1 root  pgsql  875B Nov 11 17:24
 010.pgsql.sh
 -rwxr-x--x  1 root  wheel  407B Nov 12 19:33
 apache2.sh
 -rwxr-xr-x  1 root  wheel3K Nov 14 21:12
 cups.sh.sample
 -rwxr-x---  1 root  wheel  549B Dec 30 16:58
 mysql-server.sh
 -r-xr-xr-x  1 root  wheel  602B Nov 14 21:47
 samba.sh.sample
 # cat /usr/local/etc/rc.d/apache2.sh
 #!/bin/sh
 PREFIX=/usr/local
 
 case $1 in
 start)
  [ ssl = ssl -a -f
 $PREFIX/etc/apache2/ssl.crt/server.crt ] 
  SSL=ssl
  [ -x ${PREFIX}/sbin/apachectl ] 
 ${PREFIX}/sbin/apachectl 
 start${SSL}  /dev/null  echo -n ' apache2'
  ;;
 stop)
  [ -r /var/run/httpd.pid ] 
 ${PREFIX}/sbin/apachectl stop  
 /dev/null  echo -n ' apache2'
  ;;
 *)
  echo Usage: `basename $0` {start|stop}
 2
  ;;
 esac
 
 exit 0
 Swami:
 
 
 
 Marty Landman   Face 2 Interface Inc 845-679-9387
 Sign On Required: Web membership software for your
 site
 Make a Website:
 http://face2interface.com/Home/Demo.shtml
 


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trying to see website from the Internet

2003-10-24 Thread Micke P

hi,

In order to eliminate the router as a cause, I made a
direct connection from the DSL to the computer (no
router). But I wasn't able to reach the DSL modem page
from my FreeBSD box. So I installed Apache on my
Windows box and ran the line to it. I am able to see
the running website from the ISP-assigned LAN in this
case, but still not able to reach it from the
ISP-assigned dynamic IP. This leads me to believe that
the problem has nothing specific to do with settings
on the FreeBSD box or the router.

The Windows box has no firewall, so there's no issue
of blocked ports, I guess. I keep thinking it's the
ISP, since I don't really understand how requests
could / or could not go from the dynamic IP to the
ISP-assigned LAN IP without their router or whatever.

Micke

--- Viktor Lazlo [EMAIL PROTECTED] wrote:
 
 
 On Thu, 23 Oct 2003, Micke P wrote:
 
 
  Hi,
 
  Well, it's not the router. I removed the router
 and
  went directly to the server. I actually installed
  another server on a windows box. And that didn't
 help.
  I called my ISP and they said they don't block
 ports.
  I'd be glad if anyone could point me in the right
  direction.
 
 What do you mean you installed another server on a
 windows box--that you
 tried running apache under windows and it didn't
 work their either?
 
 Cheers,
 
 Viktor


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trying to see website from the Internet

2003-10-23 Thread Micke P

Hi,

Well, it's not the router. I removed the router and
went directly to the server. I actually installed
another server on a windows box. And that didn't help.
I called my ISP and they said they don't block ports.
I'd be glad if anyone could point me in the right
direction. 

I have set up everything as described from several
sources and still the magic of appearing on the
internet is not happening. It's like the dynamic ip is
not forwarded to my network. I can't think of what
else would be the problem.

Thanks,
Micke


--- Viktor Lazlo [EMAIL PROTECTED] wrote:
 
 
 On Tue, 21 Oct 2003, Micke P wrote:
 
  Do you know what an ISP, earthlink, in this case,
  might do to keep you from serving pages? I'm using
  another port from 80, because I just get the ISP
 modem
  status page when using the dynamic IP with the
 normal
  80 port.
 
 I doubt that would be the case, it is much more
 likely to do with router
 setup.  What is the make and model of your router?
 
 Cheers,
 
 Viktor


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Trying to see website from the Internet

2003-10-21 Thread Micke P

Hi,

I'm having all kinds of trouble trying to get things
set up to see my website on the Internet. I know
people like to claim to be newbies, but I actually am.
:-)  

My machine (ethernet card) IP is 192.168.254.25 and
I'm serving on port 8080. I can bring up the site no
problem on my LAN- http://192.168.254.25:8080/, but
not outside.

My ISP is earthlink and it's a dynamic IP account.
Right now the WAN IP is: 68.164.84.178. Trying
http://68.164.84.178:8080/ doesn't work. I've opened
the port, 8080, on the router.

What should I look at to solve this? I have
unsuccessfully scoured the complete freebsd book,
handbook, and archives. But haven't found anything to
address this specific problem yet, although it seems
straightforward. If you think I don't understand
networks exactly, you are correct; but it's not for
lack of trying.

Thanks for help,
Micke


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trying to see website from the Internet

2003-10-21 Thread Micke P

 Hi Viktor,
 
 See comments below.
 
 --- Viktor Lazlo [EMAIL PROTECTED] wrote:
  
  
  On Tue, 21 Oct 2003, Micke P wrote:
  
  
   Hi,
  
   I'm having all kinds of trouble trying to get
  things
   set up to see my website on the Internet. I know
   people like to claim to be newbies, but I
 actually
  am.
   :-)
  
   My machine (ethernet card) IP is 192.168.254.25
  and
  I'm serving on port 8080. I can bring up the
 site
  no
   problem on my LAN- http://192.168.254.25:8080/,
  but
   not outside.
  
   My ISP is earthlink and it's a dynamic IP
 account.
   Right now the WAN IP is: 68.164.84.178. Trying
   http://68.164.84.178:8080/ doesn't work. I've
  opened
   the port, 8080, on the router.
  
   What should I look at to solve this? I have
   unsuccessfully scoured the complete freebsd
 book,
   handbook, and archives. But haven't found
 anything
  to
   address this specific problem yet, although it
  seems
   straightforward. If you think I don't understand
   networks exactly, you are correct; but it's not
  for
   lack of trying.
  
 
 
  I'm assuming since you say you can view it at
  http://192.168.254.25:8080/
 
 Yes. On my LAN only.
 
  that you've told apache to listen to port 8080
 
 Yes. 
 
 --have
  you also entered your
  hostname or IP address under ServerName?

 Yes. 
 
 There seems to be no problem with Apache. The site
 is
 being served fine. It's the internet getting the
 signal, that's the problem.


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trying to see website from the Internet

2003-10-21 Thread Micke P

--- Paul Everlund [EMAIL PROTECTED] wrote:
 Micke P wrote:
  My machine (ethernet card) IP is 192.168.254.25
 and
  I'm serving on port 8080. I can bring up the site
 no
  problem on my LAN- http://192.168.254.25:8080/,
 but
  not outside.
  
  My ISP is earthlink and it's a dynamic IP account.
  Right now the WAN IP is: 68.164.84.178. Trying
  http://68.164.84.178:8080/ doesn't work. I've
 opened
  the port, 8080, on the router.
 
 Right now the IP is 68.164.84.178? 

Yes.

 This is not an
 direct
 answer to your question, but if you're using a
 dynamic
 IP I suggest you go to, for an example DynDNS, and
 get
 a name for your site. After that you should install
 some kind of daemon that updates (in this case)
 DynDNS
 to reflect your dynamic IP-changes. In that way you
 should always be able to connect to your box!
 
 But all that I guess you've already figured out. :-)

Thanks. Yes. I have a domain. But setting it up
doesn't do any good since there is no IP it can
connect to.

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Trying to see website from the Internet

2003-10-21 Thread Micke P

--- [EMAIL PROTECTED] wrote:
  I opened the port on my (hardware) router box, not
 the
  FreeBSD firewall. Internet - ISP - Modem -
 Router
  - FreeBSD box. Hopefully that's all I need to do
 to
  forward the port 8080 packets. Do I need to
 configure
  the FreeBSD firewall settings as well to reflect
 the
  port?
 
 no, if you can get to the website from inside your
 hardware firewall (a
 machine other then your freeBSD box) then the
 problem ly's with either
 your hardware firewall, or your ISP.  What Brand
 firewall do you have? 
 Remeber that just opening port 8080 will not work,
 you have to go into the
 Port Forwarding section of your firewall and
 forward the 8080 port to
 your inside box

While it's not called Port Forwarding on the router
setup, I'm certain that is what I've set up. 

Do you know what an ISP, earthlink, in this case,
might do to keep you from serving pages? I'm using
another port from 80, because I just get the ISP modem
status page when using the dynamic IP with the normal
80 port.

I'm afraid I'm just frustratedly baffled.

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]