aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/simplem@.service
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/simplem@.service')
-rw-r--r--scripts/simplem@.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/simplem@.service b/scripts/simplem@.service
new file mode 100644
index 00000000..0ac14885
--- /dev/null
+++ b/scripts/simplem@.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Simple python module script runner
+OnFailure=monitor@%n
+
+[Service]
+Type=simple
+User=guillaume
+Group=guillaume
+ExecStart=/usr/bin/python -m %i
+WorkingDirectory=/home/guillaume/projects/code/python
+EnvironmentFile=/etc/serenitas.conf
+Environment=PYTHONPATH=/home/guillaume/projects/code/python
+LoadCredential=serenitas:/etc/credstore