Add systemd service file #1485

Signed-off-by: Julien Gouesse <gouessej@orange.fr>
This commit is contained in:
Julien Gouesse 2017-08-05 21:24:46 +02:00 committed by Joakim Erdfelt
parent cc92ad0b07
commit 9cede68b35
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
[Unit]
Description=Jetty Web Application Server
After=syslog.target network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
PIDFile=/opt/web/mybase/jetty.pid
ExecStart=/etc/init.d/jetty start
ExecStop=/etc/init.d/jetty stop
ExecReload=/etc/init.d/jetty restart
User=jetty
Group=jetty
[Install]
WantedBy=multi-user.target