Unfortunately, I inherited this system from someone who hacked it together 
before he left, so I'm just trying to use a quick/minimal approach.

I think that tomcat6 was setup with the init.d approach and would like to keep 
v8 similar if at all possible.

I'm not bad with scripting and init stuff, but not that strong as a Linux Admin 
and all of the options available to Linux Admin/developers.

I do appreciate all of your comments though, but I just want something easy to 
cut and paste at this time so I can be done with this and get back to my other 
(also demanding) projects.

Thanks,,

Joel

-----Original Message-----
From: Igal Sapir [mailto:i...@lucee.org] 
Sent: Tuesday, January 08, 2019 1:12 PM
To: Tomcat Users List
Subject: Re: Proper way to set up tomcat 8.5 (autostart and service setup)

On Tue, Jan 8, 2019 at 9:58 AM John Dale <jcdw...@gmail.com> wrote:

> I'm using init.d and a custom script complete with single command
> deploy using git hooks.
>
> git push <remote> master pushes, builds, and  bounces Tomcat. I like
> it very much .. building and deploying can be such a pain.
>
> Is systemd something that is available on debian wheezy?
>

It can be enabled on "Wheezy" (Debian 7, c. 2013, these names only add to
the confusion, I had to look it up), but that was the last Debian version
to use init.d.  Debian 8 (Jessie) already came with systemd in 2015 [1].

Is init.d going out of style?
>

Yes, for the better part of 5 years now.


> I've been using it since .. I can't even remember.  1998 maybe on Fedora?
>

That might be the issue ;)

Igal

[1] 
https://urldefense.proofpoint.com/v2/url?u=https-3A__en.wikipedia.org_wiki_Debian-5Fversion-5Fhistory-23Debian-5F7-5F-28Wheezy-29&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=2LQygApob8_-Xjdffqqj3RI6PQE_6kvv-DI928BXDYs&e=




>
>
> On 1/8/19, John Larsen <john.lar...@javapipe.com> wrote:
> > I simply tie systemd with the init script. Our servers host around 20-30
> > tomcat instances. I found it easier do it this way.
> >
> >
> > John Larsen
> >
> >
> >
> > On Tue, Jan 8, 2019 at 10:26 AM Igal Sapir <i...@lucee.org> wrote:
> >
> >> On Tue, Jan 8, 2019 at 9:08 AM John Larsen <john.lar...@javapipe.com>
> >> wrote:
> >>
> >> > Setup an init script.
> >> >
> >>
> >> On modern Linux systems you should really use systemd instead of the old
> >> init scripts.
> >>
> >> I've written in the past a script that can be used as a systemd
> template,
> >> so it allowed for multiple services to be run on different ports with
> >> different settings.  I can't find it easily ATM though.
> >>
> >> I think that it'd be good if Tomcat came with such a script so that it's
> >> easy to install as a systemd service.
> >>
> >> Igal
> >>
> >>
> >> > This is similar to how I do it.
> >> > https://urldefense.proofpoint.com/v2/url?u=https-3A__gist.github.com_katesclau_0ff6e41fd698e94eb43c&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=CidLbiu7JPR90A9E2dbdPGBb1aF0BtO99NxJo9OJ4s0&e=
> >> >
> >> > John Larsen
> >> >
> >> >
> >> >
> >> > On Tue, Jan 8, 2019 at 10:01 AM Joel Saunders <
> joel.saund...@zones.com>
> >> > wrote:
> >> >
> >> > > All,
> >> > >
> >> > >
> >> > >
> >> > > I just installed Tomcat 8.5 on RedHat.
> >> > >
> >> > >
> >> > >
> >> > > The previous tomcat6 install was setup so that I could use the linux
> >> > > service command to start and stop.
> >> > >
> >> > >               I’d like to take that feature away from the tomcat6
> >> install
> >> > > and add it for the new tomcat85 install.
> >> > >
> >> > >
> >> > >
> >> > > I’d also like for tomcat85 to be able to autostart upon reboots.
> >> > >
> >> > >
> >> > >
> >> > > Lastly, I’d like the logs to go to /var/log/tomcat8 if possible.
> >> > >
> >> > >
> >> > >
> >> > > Can anyone point me to the correct way to accomplish these
> >> requirements?
> >> > >
> >> > >
> >> > >
> >> > > Thanks in advance for your cooperation.
> >> > >
> >> > >
> >> > >
> >> > > … Joel
> >> > >
> >> > >
> >> > >
> >> > > *JOEL SAUNDERS*
> >> > >
> >> > >
> >> > >
> >> > > SR. DBA/ARCHITECT, MANAGED SERVICES | Zones, Inc.
> >> > >
> >> > > W: 518-652-4089| C: 518-265-0771
> >> > > joel.saund...@zones.com | zones.com <https://nfrastructure.com/>
> >> > >
> >> > > <http://zones.com/>
> >> > >
> >> > >
> >> > >
> >> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.facebook.com_nfrastructure_&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=lf5TUBfh0FVAjwQUFpP6ejkUEPX6BHwzKDvKuKE5ckw&e=>
> >> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.linkedin.com_company_nfrastructure_&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=mejpzcUIo_DOJHZzesVrakCzTfb8aYMx2KK02lmQuLc&e=>
> >> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__twitter.com_nfrastructure&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=yvbPj6l2-3wIQwuESt67qZi9LsY9hXb7BUrQtTI43hA&e=>
> >> > > <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_user_nfrastructure1992&d=DwIFaQ&c=bFSfV3JDZVFjkVdrOg1Bnsgwku-x_EGNRi2KNxwvClI&r=WG-pl0WpwyPk-r6oNnUhsoAUBdVNpC8ryokTG8RkffA&m=uGtSlmXLamNsmi4gn9t69I5ulozMuYWznu3bdceQS3A&s=TnVdJJ4VAzpW4PwZpd_Z5OeFvs3M0Tv5FAyZR0ur8JE&e=>
> >> > >
> >> > >
> >> > >
> >> >
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to