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): trytond-2.2.2-1.fc17.noarch systemd-44-12.fc17.x86_64 How reproducible: Always Steps to Reproduce: 1. yum install trytond 2. create tryton role in PostgreSQL, adjust /etc/trytond.conf 3. systemctl start trytond.service Actual results: $ sudo systemctl reload postgresql.service Job failed. See system journal and 'systemctl status' for details. $ echo $? 1 $ 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) CGroup: name=systemd:/system/trytond.service └ 7486 /usr/bin/python /usr/bin/trytond --config /etc/try... Expected results: The "systemctl start" should return immediately upon the service starting Additional info: 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. https://admin.fedoraproject.org/updates/trytond-2.2.3-2.fc17
Package trytond-2.2.3-2.fc17: * 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: https://admin.fedoraproject.org/updates/FEDORA-2012-9441/trytond-2.2.3-2.fc17 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.