From 8e8948af38984c68bf968c8d427558bfb7f986fb Mon Sep 17 00:00:00 2001 From: Guillaume Gauvrit Date: Tue, 30 May 2017 22:02:46 +0200 Subject: [PATCH] Add a sample systemd unit file --- pyshop.sample.service | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 pyshop.sample.service diff --git a/pyshop.sample.service b/pyshop.sample.service new file mode 100644 index 0000000..2307c6d --- /dev/null +++ b/pyshop.sample.service @@ -0,0 +1,11 @@ +[Unit] +Description=Pyshop +After=multi-user.target + +[Service] +WorkingDirectory=/srv/pyshop +ExecStart=/srv/pyshop/bin/python ./bin/pserve pyshop.ini +ExecStop= + +[Install] +WantedBy=multi-user.target