after a few days of pondering around google I give up.
Running Tika-Server with command line works fine and Tika-Server starts responding on http://localhost:9998:
java -jar tika-server-2.0.0-SNAPSHOT.jar
Following this guide (with appropriate changes to scripts, paths and jar names ofc) Tika-Server is not responding on http://localhost:9998. I have used option with logging from this guide (at the bottom) and output to log file is the same as is when Tika-Server is run with command line.
Service does not show up with command
systemctl | grep running
but it shows up with command
systemctl list-unit-files | grep enabled
as enabled.
I have also tried to run java service via init.d path, but it didnt work.
What am I missing?
systemctl status the-name-of-your-service
print? e.g.systemctl status Tika-Server
if you set up your service as/etc/systemd/system/Tika-Server.service
Type=forking
andExecStart
,ExecStop
,ExecReload
point to a script that starts/stops/restarts the java jar, try putting the java jar command directly in the .service file, e.g.Type=simple
thenExecStart=/usr/bin/java -jar /path/to/Tika-Server.jar
and removeExecStop
andExecReload
-- systemd (systemctl status ...
) then will also show you logs (anything printed by the server on stdout/stderr), which the intermediate script is redirecting to /dev/null