<div dir="ltr">If you're on a SystemD-based distro, here's some instructions that work on CentOS 7. YMMV on other systems:<div><br></div><div>Courtesy of the InCommon Shib Training Team:<br><div><br></div><div><div><br></div><div>1) Create the file /etc/systemd/system/shibboleth.service using your favorite editor and save the following there (Note, what follows is case-sensitive:</div><div><br></div><div>[Unit]<br></div><div>Description=Shibboleth Identity Provider</div><div> </div><div>[Service]</div><div>WorkingDirectory=/opt/shibboleth-idp/jetty-base</div><div>ExecStart=/usr/bin/java -jar <path-to-jetty>/start.jar jetty.home=<your-jetty-home> jetty.base=<your-custom-jetty-base></div><div> </div><div>[Install]</div><div>WantedBy=multi-user.target</div></div></div><div><br></div><div>2) Reload systemd: systemctl daemon-reload shibboleth</div><div><br></div><div>3) Start Shib: systemctl enable shibboleth && systemctl start shibboleth</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 30, 2015 at 12:52 PM, Wessel, Keith <span dir="ltr"><<a href="mailto:kwessel@illinois.edu" target="_blank">kwessel@illinois.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all,<br>
<br>
I know this is a purely Jetty question, foregive me if it's off-topic. I figured others might have run into this, too.<br>
<br>
I've been using jetty.sh (included with the Jetty package) to start/stop Jetty. Seems it's using a simple '&' backgrounding method to daemonize jetty.sh. This is fine as long as I'm starting/stopping Jetty from the local system. It's when I do:<br>
<br>
ssh other-IDP-note jetty.sh start<br>
<br>
that I run into problems. The non-interactive nature of things seems to gum up the works. My ssh command never returns me to a prompt on the local system. I assume it's waiting for the backgrounded process to start and, in fact, verified this with a simple one-line bash script: sleep 15 &. It terminates immediately when run locally but hangs for 15 seconds when passed to ssh asa command to run remotely.<br>
<br>
I know I can get around this with the -t option to ssh to tell ssh to force a pseudo terminal. But is there any Jetty command-line arg that tells Jetty to daemonize? I imagine, if there was, it would probably be used in jetty.sh in place of &. But I figured it couldn't hurt to ask. My Google searches so far reveal no such option.<br>
<br>
I'm far happier with Jetty's ease of configuration and speed so far than I was with Tomcat, but Tomcat at least knew how to fork its own Daemon process.<br>
<br>
Thanks,<br>
Keith<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>David Langenberg<div>Identity & Access Management Architect</div><div>The University of Chicago</div></div></div></div>
</div>