Red Hat Bugzilla – Bug 827696
trytond 2.2.2's sysvinit script does not integrate with systemd
Last modified: 2012-06-25 20:29:29 EDT
Description of problem:
When launching trytond using either 'service trytond start' or 'systemctl start trytond.service', systemctl would stall for a long time and then quit with an error.
trytond itself has actually started successfully, but it seems this failed to be noticed by systemd. Further attempt to query the service reports that the service failed to start due to a timeout.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install trytond
2. create tryton role in PostgreSQL, adjust /etc/trytond.conf
3. systemctl start trytond.service
$ sudo systemctl reload postgresql.service
Job failed. See system journal and 'systemctl status' for details.
$ echo $?
$ systemctl status trytond.service
trytond.service - LSB: start and stop trytond
Loaded: loaded (/etc/rc.d/init.d/trytond)
Active: failed (Result: timeout) since Sat, 02 Jun 2012 18:21:32 +0700; 8min ago
Process: 9100 ExecStart=/etc/rc.d/init.d/trytond start (code=exited, status=0/SUCCESS)
└ 7486 /usr/bin/python /usr/bin/trytond --config /etc/try...
The "systemctl start" should return immediately upon the service starting
Does this bug occur on RHEL (i.e. is this only a problem when the init system is systemd)? In which case it might be worth writing a systemd service descriptor and using the initscript only on RHEL
If you could prepare the unit file for tryton it would speed up things. But it's the plan to switch to native systemd support.
Sure thing; I'll try and find time for it tomorrow
Created attachment 588802 [details]
trytond service descriptor for systemd
Adapted from mysqld.service -- note: trytond does not start properly if PrivateTmp is set to true (as mysqld's is)
Tried killing the service and it does get restarted automatically.
trytond-2.2.3-2.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing trytond-2.2.3-2.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
trytond-2.2.3-2.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.