Skip to content

Instantly share code, notes, and snippets.

@danielkeller
Created July 18, 2017 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielkeller/496fff6179df76316d4c5d9bd6eb5dd8 to your computer and use it in GitHub Desktop.
Save danielkeller/496fff6179df76316d4c5d9bd6eb5dd8 to your computer and use it in GitHub Desktop.
Systemd unit for Jetty
[Unit]
Description=Jetty Web Application Server
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/jetty.pid
ExecStart=/opt/jetty/jetty/bin/jetty.sh start
ExecStop=/opt/jetty/jetty/bin/jetty.sh stop
ExecReload=/opt/jetty/bin/jetty.sh restart
SuccessExitStatus=143
TimeoutStartSec=5min
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment