From 17fa7beeb3f75de404ba2f980bf8697203d4b93f Mon Sep 17 00:00:00 2001 From: Martin van Es <martin@mrvanes.com> Date: Thu, 27 Jan 2022 14:10:54 +0100 Subject: [PATCH] Add mdproxy systemd service file --- mdproxy.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mdproxy.service diff --git a/mdproxy.service b/mdproxy.service new file mode 100644 index 0000000..746feeb --- /dev/null +++ b/mdproxy.service @@ -0,0 +1,15 @@ +[Unit] +Description=MDProxy +After=syslog.target network.target + +[Service] +Type=simple +WorkingDirectory=/opt/alternate-mdx +ExecStart=/opt/alternate-mdx/bin/python -u mdproxy.py +ExecReload=/bin/kill -HUP $MAINPID +Restart=on-failure +RestartSec=10 +SyslogIdentifier=mdproxy + +[Install] +WantedBy=multi-user.target -- GitLab