You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Pierre Smits <pi...@gmail.com> on 2008/05/22 16:20:10 UTC
setup apacheDS as a service in Linux
Does anyone know how to set up apacheDS 1.5.2 as a service in Linux?
Re: setup apacheDS as a service in Linux
Posted by Alex Karasulu <ak...@apache.org>.
Nice. I do the port forwarding too so I don't have to run ADS as root.
Right now I create a apacheds_default init script copy that does not require
the additional instance parameter and use that as the init script which I
setup using either update-rc.d for deb systems or chkconfig for rpm based
systems.
It would be nice to have these example NAT scripts and other associated
recipies on our site.
Cheers,
Alex
On Thu, May 22, 2008 at 10:51 AM, Jeroen Vriesman <li...@gmail.com>
wrote:
> Hi,
>
> I use the following two lines in /etc/rc.local
>
> /etc/init.d/apacheds start default
> /usr/local/scripts/ipt_dnat
>
> where ipt_dnat is:
>
> #!/bin/sh
> iptables -t nat -F
> iptables -t nat -A PREROUTING -i eth0 -d 192.168.203.250 -p tcp --dport
> 389 -j REDIRECT --to-port 10389
> iptables -t nat -A PREROUTING -i eth0 -d 192.168.203.250 -p tcp --dport 88
> -j REDIRECT --to-port 10088
>
> the apacheds script is attached, but you probably already have it.
>
> by the way, this doesn't stop the service at system shutdown
>
>
> On Thu, May 22, 2008 at 4:20 PM, Pierre Smits <pi...@gmail.com>
> wrote:
>
>> Does anyone know how to set up apacheDS 1.5.2 as a service in Linux?
>>
>
>
Re: setup apacheDS as a service in Linux
Posted by Jeroen Vriesman <li...@gmail.com>.
Hi,
I use the following two lines in /etc/rc.local
/etc/init.d/apacheds start default
/usr/local/scripts/ipt_dnat
where ipt_dnat is:
#!/bin/sh
iptables -t nat -F
iptables -t nat -A PREROUTING -i eth0 -d 192.168.203.250 -p tcp --dport 389
-j REDIRECT --to-port 10389
iptables -t nat -A PREROUTING -i eth0 -d 192.168.203.250 -p tcp --dport 88
-j REDIRECT --to-port 10088
the apacheds script is attached, but you probably already have it.
by the way, this doesn't stop the service at system shutdown
On Thu, May 22, 2008 at 4:20 PM, Pierre Smits <pi...@gmail.com>
wrote:
> Does anyone know how to set up apacheDS 1.5.2 as a service in Linux?
>
Re: setup apacheDS as a service in Linux
Posted by Alex Karasulu <ak...@apache.org>.
Which distribution do you have?
On Thu, May 22, 2008 at 10:20 AM, Pierre Smits <pi...@gmail.com>
wrote:
> Does anyone know how to set up apacheDS 1.5.2 as a service in Linux?
>
RE: setup apacheDS as a service in Linux
Posted by Wim V <wi...@pizzastop.be>.
Hi,
Which particular Linux distribution did you have in mind?
It depends on whether you use sys-V or BSD init style.
If you use sys-V init scripts you use the utility update-rc.d to make
modifications to runlevel startups and shutdowns scripts and chkconfig to
check. Google on update-rc.d [your OS], you will surely find the procedure.
This article pretty much explains everything under the paragraph "runlevels"
http://sleepyhead.de/howto/?href=sysinfo, for BSD as well as sys-V systems.
Cheers,
Wim
-----Original Message-----
From: Pierre Smits [mailto:pierre.smits@gmail.com]
Sent: donderdag 22 mei 2008 16:20
To: users@directory.apache.org
Subject: setup apacheDS as a service in Linux
Does anyone know how to set up apacheDS 1.5.2 as a service in Linux?