2017-07-05 23:56:18 +02:00
|
|
|
[Unit]
|
|
|
|
Description=GNU Health server
|
|
|
|
After=syslog.target
|
|
|
|
Requires=postgresql.service
|
2017-08-18 15:03:55 +02:00
|
|
|
Conflicts=trytond.service
|
2017-07-05 23:56:18 +02:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=tryton
|
|
|
|
Group=tryton
|
|
|
|
PIDFile=/var/lib/trytond/trytond.pid
|
|
|
|
|
|
|
|
ExecStart=/usr/bin/trytond --config /etc/tryton/trytond.conf --pidfile=/var/lib/tryton/trytond.pid --logconf=/etc/tryton/trytond_log.conf
|
|
|
|
|
|
|
|
# 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
|