Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] WordPress on CentOS 7 Linux

/var/run is a bad place to put config files anyhow. I use /etc/jettybase
 
--
Lobos Studios | Phone: 877.919.4WEB | LobosStudios.com | Facebook.com/LobosStudios | @LobosStudios
Web Development - Mobile Development - Helpdesk/Tech Support - Computer Sales & Service
Acer Authorized Reseller - Computers, Windows and Android Tablets, Accessories
 
Steve Sobol - CEO, Senior Developer and Server Jockey
steve@xxxxxxxxxxxxxxxx
 
 
 
------ Original Message ------
From: "Alexander Farber" <alexander.farber@xxxxxxxxx>
To: "JETTY user mailing list" <jetty-users@xxxxxxxxxxx>
Sent: 6/27/2016 13:38:31
Subject: Re: [jetty-users] WordPress on CentOS 7 Linux
 
I would like to add for archives that it has been a bad idea to use /var/run/jetty (or /run/jetty) as JETTY_BASE, because that dir turned out to be deleted on Linux reboot :-)

Here is my corrected /etc/systemd/system/jetty.service:

[Unit]
Description=Jetty
After=network-online.target

[Service]
Type=simple
User=jetty
Group=jetty
ExecStart=/usr/bin/java -jar /usr/share/java/jetty-distribution-9.3.10.v20160621/start.jar jetty.home=/usr/share/java/jetty-distribution-9.3.10.v20160621 jetty.base=/var/www/jetty jetty.http.port=8888
ExecStop=/bin/kill ${MAINPID}
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

Regards
Alex

Back to the top