• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst] Service startet nicht..

Moin,

ich habe einen Serverprozess, den ich einfach (als root) von Hand starten kann:
Code:
/usr/bin/trytond --config /etc/trytond.conf --pidfile=/var/lib/trytond/trytond.pid --logfile=/var/log/trytond/trytond.log
Nun hab ich das Ganze in einen systemd-service verpackt:
Code:
[Unit]
Description=Tryton server
After=syslog.target

[Service]
Type=simple
User=tryton
Group=tryton
PIDFile=/var/lib/trytond/trytond.pid

ExecStart=/usr/bin/trytond --config /etc/trytond.conf --pidfile=/var/lib/trytond/trytond.pid --logfile=/var/log/trytond/trytond.log

# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec=300

# We rely on systemd to restart trytond if it dies
Restart=always

[Install]
WantedBy=multi-user.target
Der Prozess stirbt nach dem Start aber sofort:
Code:
trytond.service - Tryton server
	  Loaded: loaded (/usr/lib/systemd/system/trytond.service; enabled)
	  Active: failed (Result: start-limit) since Sat, 2013-06-22 10:23:05 CEST; 6min ago
	 Process: 2332 ExecStart=/usr/bin/trytond --config /etc/trytond.conf --pidfile=/var/lib/trytond/trytond.pid --logfile=/var/log/trytond/trytond.log (code=exited, status=1/FAILURE)
	  CGroup: name=systemd:/system/trytond.service

Jun 22 10:23:05 linux-qpe9.site systemd[1]: Unit trytond.service entered failed state
Jun 22 10:23:05 linux-qpe9.site systemd[1]: Stopping Tryton server...
Jun 22 10:23:05 linux-qpe9.site systemd[1]: Starting Tryton server...
Jun 22 10:23:05 linux-qpe9.site systemd[1]: Failed to start Tryton server.
Jun 22 10:23:05 linux-qpe9.site systemd[1]: Unit trytond.service entered failed state
Ich dachte es liegt evtl an den Berechtigungen für /usr/bin/trytond, aber der ist für alle executable.
Ich hab keine Idee woran es liegen könnte (auch nicht über Tante Google).
Habt ihr eine Idee?

EDIT: es lag an den Berechtigungen für /etc/trytond.conf - die standen auf 640 für den Owner root, insofern durfte kein anderer Lesen...
 
Oben