Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Startup scripts under Linux systemd ?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Startup scripts under Linux systemd ?


Chronological Thread 
  • From: "Peter St. Onge" <>
  • To: "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Startup scripts under Linux systemd ?
  • Date: Thu, 9 Feb 2017 17:54:23 -0500
  • Ironport-phdr: 9a23:pbUc0xL6K7U1g15Qe9mcpTZWNBhigK39O0sv0rFitYgeLPXxwZ3uMQTl6Ol3ixeRBMOAuq4C27ed6vuxEUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT6ybL9oLxi7rQrdutQYjIZmN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gr9FrhKvpxJxwIDab4+aO/V8YqzTcsgXRXZCU8tLSyBNHo2xYokJAuEcPehYtY79p14WoBewHwejGv/vxSFShnTrwKM6z/4tGhzf0gwmENIBrnrYp8jyOacKT++10LfHwS/Yb/NK3jf97ofIfQ46rPGRQbJwdtDRyU4pFwPZiVWcs5DqMCmM2+kLrmOV4e1gVee1hG4mrQF8ujevxtwsioXTnYIVykjI9SR/wIYpO9K4Ukh7bsC4EJdOrS2VKZZ5Qt4kTmp1uyg60qULtYOlcCUJ0pgr2gLTZ+Cdf4SV7B/vSvydLSp7iX9rYL6yhRm//VK9xuHiTMW50UxGojdGn9TIsH0Gygbd5dKdSvRn+0eswTaP2B7X6uFDOU07jrfbK4Q/zbEqi5oeskrOEjXwmEXtlqOWa1kk+u+y6+TgZLXmupicO5VohQ7kKqgum8q/DvokMgUWQmSX5+ex2Kf+8UHlXLlGlOA6n6fHvJzAOMgWpaC0DxdQ0ok56ha/Czmm0M4fnXkCNF9FYAyIj5T3NF3UO/D4EfC/g1KjkDh13P3GI6HhApLXLnjElrfhYbF951RAxwUp1dxf/Y5bCqkdIPLvXU/8rNPYDgU+Mwyp2+boFs992poDWWKUHKCZKrjSvESM5uIuOOmMeJQVtCjnJ/gk4f7ukWE2mUUbfaa3wZsbdmq0Eep7LEWEMjLQhYJLMXYYsxB6BMfqklyZG3YHYn2yTrAx/Bk6E4ngEJ/OQIbrjbCcinSVBJpTMyp+B0yBCz/Ta8PMfPEDZWjadtdsjjFCTqSmTYAs/QyysxX9zaZgaOHdrH5L/an/3cR4srWA3So58iZ5WpyQ

Main thing is that people know about the need to edit gsh/gsh.sh -- It's blurry to me at the moment (clearly the earlier coffees have worn off), but I dimly seem to recall the installer asking for the location of a shell of some sort (/bin/sh?), so perhaps getting the installer to set this up is not so farfetched. In any case, the installer already asks for the location of dos2unix to strip the carriage returns out of the gsh.sh script...

Making symlinks on Unix systems to shells is probably "Not a Good Idea(tm)" and regardless the shells themselves should normally be in a user's PATH somewhere, and something like

pete@orca:~$ BASH=`which bash`; echo $BASH
/bin/bash

... should function on Unixen of different pedigrees. I'm happy to try experimenting with bash vs sh (sh on Ubuntu points to dash, we run Grouper on RH/Centos or SuSE at work) to see if the existing gsh works with those shells.

I can look into this and try a couple of things and get back to you if you like.

Thanks and Best, -- pete

On 2017-02-09 05:15 PM, Hyzer, Chris wrote:
Is it unreasonable to require /bin/bash? i.e. if its not there they
need to either make a symlink for it or edit gsh/gsh.sh?

Thanks
Chris

-----Original Message-----
From: Peter St. Onge
[mailto:]
Sent: Thursday, February 09, 2017 5:12 PM
To: Hyzer, Chris
<>
Cc:

Subject: Re: [grouper-users] Startup scripts under Linux systemd ?

Hi Chris,

Many thanks!

Might be able to do this as a heredoc to suss out the location of bash.
If anybody here has bash *not* in /bin please flag me -- I might ask you
to test something.

Thanks and best, -- pete


On 2017-02-09 04:41 PM, Hyzer, Chris wrote:
I posted these in your contrib space, and linked from the existing grouper
loader startup script

https://spaces.internet2.edu/display/Grouper/Grouper+loader+and+tomcat+startup+scripts+systemd

https://spaces.internet2.edu/display/Grouper/GrouperShell+GSH+loader+linux+service

I think we don’t have #!/bin/bash at top because some systems have it in a
different place. Maybe the installer should sort that out? Anyone have
advice about that?

Thanks
Chris

-----Original Message-----
From:


[mailto:]
On Behalf Of Peter St. Onge
Sent: Thursday, February 09, 2017 9:22 AM
To:

Subject: [grouper-users] Startup scripts under Linux systemd ?

Not sure if this is useful or even relevant, but I've cobbled together a
couple of Linux systemd service description files for Tomcat as well as
the Grouper loader that I'm happy to contribute / document; this
simplifies the automatic startup for both of these. Since we have shibd
and Apache as a reverse proxy (Shibboleth service provider) in front of
Tomcat, as well as a local PostgreSQL, the machine startup / service
restart dependencies are more easily handled this way.

(The one caveat is that Unix scripts used for gsh -- gsh, gsh.sh --
won't run this way as they don't have the #!/bin/bash "splat-bang"
header line that sets out the interpreter, easily fixed manually but it
would be more useful if these files were changed in the source code
assuming that it wouldn't cause issues elsewhere)

Thanks and best, -- pete





--
Peter St. Onge

Information Security Architect
Business Continuity and Communications
Information + Technology Services University of Toronto



Archive powered by MHonArc 2.6.19.

Top of Page