FS#30356 - [tomcat7] Systemd Service
Attached to Project:
Arch Linux
Opened by Webhostbudd (Webhostbudd) - Tuesday, 19 June 2012, 12:28 GMT
Last edited by Guillaume ALAUX (galaux) - Tuesday, 21 August 2012, 17:52 GMT
Opened by Webhostbudd (Webhostbudd) - Tuesday, 19 June 2012, 12:28 GMT
Last edited by Guillaume ALAUX (galaux) - Tuesday, 21 August 2012, 17:52 GMT
|
Details
The current tomcat packages lack systemd startup scripts,
making it a little more difficult to run the tomcat service
on systemd init only systems. I propose adding a systemd
service file for the daemon.
|
This task depends upon
Closed by Guillaume ALAUX (galaux)
Tuesday, 21 August 2012, 17:52 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 7.0.29-1
Tuesday, 21 August 2012, 17:52 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in 7.0.29-1
Oddly the commands work fine in a regular shell or in a shell script, but when run through systemd tomcat dies with a string out of bounds error. I'm not sure what the root cause of the error is at this point.
tomcat7.socket (0.1 KiB)
@Webhostbudd: Feedback would be appreciated :)
$ sudo systemctl start tomcat7
Failed to issue method call: Unit tomcat7.service failed to load: No such file or directory. See system logs and 'systemctl status tomcat7.service' for details.
$ sudo systemctl status tomcat7
tomcat7.service
Loaded: error (Reason: No such file or directory)
Active: failed (Result: exit-code) since Mon, 20 Aug 2012 12:18:39 +0300; 24h ago
Main PID: 2019 (code=exited, status=143)
journalctl and /var/log/tomcat7 do not contain anything relevant. I'm new to systemd too, so I don't know how to debug this further.
Could you please check /lib/systemd/system/tomcat7.service is present
I have always used the '.service' post part for my tests:
# systemctl start tomcat7.service
Could you please try this (I know the error message states 'tomcat7.service' but let's try).
-rw-r--r-- 1 root root 1049 Aug 19 17:08 /lib/systemd/system/tomcat7.service
$ sudo systemctl start tomcat7.service
Failed to issue method call: Unit tomcat7.service failed to load: No such file or directory. See system logs and 'systemctl status tomcat7.service' for details.
$ sudo systemctl status tomcat7.service
tomcat7.service
Loaded: error (Reason: No such file or directory)
Active: failed (Result: exit-code) since Mon, 20 Aug 2012 12:18:39 +0300; 24h ago
Main PID: 2019 (code=exited, status=143)
# systemctl daemon-reload
# kill -1 1
Until then, systemd will not read newly installed (or updated) unit files.
The kill call was not necessary.