[tryton-debian-vcs] tryton-server branch debian updated. debian/3.2.1-1-1-g47f776d

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Mon Jul 7 12:51:56 UTC 2014


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-server.git;a=commitdiff;h=debian/3.2.1-1-1-g47f776d

commit 47f776d638fc4e8dd5bda9a17662f03813a6c505
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Jul 7 14:50:14 2014 +0200

    Adding a tryton-server.service file.

diff --git a/debian/tryton-server.default b/debian/tryton-server.default
index f5260ef..9a86a49 100644
--- a/debian/tryton-server.default
+++ b/debian/tryton-server.default
@@ -1,4 +1,9 @@
-# Defaults for trytond initscript
+# Defaults for trytond initscript (sysvinit-core)
+#
+# Note: If your init system is systemd and you want to customize any of the
+# default values, proceed like:
+# cp /lib/systemd/system/tryton-server.service /etc/systemd/system
+# and adapt /etc/systemd/system/tryton-server to your needs.
 
 # Specify the user name (Default: tryton).
 DAEMONUSER="tryton"
diff --git a/debian/tryton-server.service b/debian/tryton-server.service
new file mode 100644
index 0000000..38b5e66
--- /dev/null
+++ b/debian/tryton-server.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Tryton Application Platform Server
+After=remote-fs.target
+After=network.target
+After=postgresql.service
+After=mysql.service
+ConditionPathExists=/etc/trytond.conf
+
+[Service]
+User=tryton
+Group=tryton
+ExecStart=/usr/bin/trytond --config=/etc/trytond.conf --logfile=/var/log/tryton/trytond.log
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
-- 
tryton-server



More information about the tryton-debian-vcs mailing list